Skip to content

Commit

Permalink
Improve missing texture error
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Aug 9, 2023
1 parent a09de18 commit dab6368
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions prboom2/src/r_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include "dsda/args.h"
#include "dsda/configuration.h"
#include "dsda/map_format.h"
#include "dsda/utility.h"

//
// Graphics.
Expand Down Expand Up @@ -304,15 +305,13 @@ static void R_InitTextures (void)

if (errors)
{
const lumpinfo_t* info = W_GetLumpInfoByNum(names_lump);
lprintf(LO_ERROR, "\nR_InitTextures: The file %s seems to be incompatible with \"%s\".\n",
info->wadfile->name,
(doomverstr ? doomverstr : "DOOM"));
I_Error("R_InitTextures: %d errors", errors);
}
const lumpinfo_t* info;

if (errors)
I_Error("R_InitTextures: %d errors", errors);
info = W_GetLumpInfoByNum(names_lump);

I_Error("Texture errors: %d!\n%s seems to be incompatible with %s.\nAre you using the right IWAD?",
errors, dsda_BaseName(info->wadfile->name), doomverstr);
}

// Create translation table for global animation.
// killough 4/9/98: make column offsets 32-bit;
Expand Down

0 comments on commit dab6368

Please sign in to comment.