diff options
Diffstat (limited to 'apps/plugins/doom/r_data.c')
-rw-r--r-- | apps/plugins/doom/r_data.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/doom/r_data.c b/apps/plugins/doom/r_data.c index 1d5c6ad272..b5ff95a364 100644 --- a/apps/plugins/doom/r_data.c +++ b/apps/plugins/doom/r_data.c | |||
@@ -395,7 +395,7 @@ void R_InitTextures (void) | |||
395 | const int *maptex1, *maptex2; | 395 | const int *maptex1, *maptex2; |
396 | char name[9]; | 396 | char name[9]; |
397 | int names_lump; // cph - new wad lump handling | 397 | int names_lump; // cph - new wad lump handling |
398 | const char *names; // cph - | 398 | const unsigned char *names; // cph - |
399 | const char *name_p;// const*'s | 399 | const char *name_p;// const*'s |
400 | int *patchlookup; | 400 | int *patchlookup; |
401 | int totalwidth; | 401 | int totalwidth; |
@@ -409,7 +409,7 @@ void R_InitTextures (void) | |||
409 | // Load the patch names from pnames.lmp. | 409 | // Load the patch names from pnames.lmp. |
410 | name[8] = 0; | 410 | name[8] = 0; |
411 | names = W_CacheLumpNum(names_lump = W_GetNumForName("PNAMES")); | 411 | names = W_CacheLumpNum(names_lump = W_GetNumForName("PNAMES")); |
412 | nummappatches = LONG(*((const int *)names)); | 412 | nummappatches = (names[3]<<24)|(names[2]<<16)|(names[1]<<8)|names[0]; |
413 | name_p = names+4; | 413 | name_p = names+4; |
414 | patchlookup = malloc(nummappatches*sizeof(*patchlookup)); // killough | 414 | patchlookup = malloc(nummappatches*sizeof(*patchlookup)); // killough |
415 | 415 | ||