- fix ProcessLumps not processing LUMP_CAR_MODELS

This commit is contained in:
Ilya Shurumov 2020-04-09 21:42:17 +06:00
parent 0f4666ae39
commit 2ce93b0265
3 changed files with 9 additions and 1 deletions

View File

@ -305,6 +305,12 @@ void ProcessLumps(char *lump_ptr, int lump_size)
printf("LUMP_JUNCTIONS: size: %d\n", size); printf("LUMP_JUNCTIONS: size: %d\n", size);
ProcessJunctionsLump((char *)ptr, size); ProcessJunctionsLump((char *)ptr, size);
} }
else if (lump_type == LUMP_CAR_MODELS)
{
printf("LUMP_CAR_MODELS: size: %d\n", size);
car_models_lump = (char*)ptr;
}
else if (lump_type == LUMP_MODELS) else if (lump_type == LUMP_MODELS)
{ {
printf("LUMP_MODELS: size: %d\n", size); printf("LUMP_MODELS: size: %d\n", size);

View File

@ -299,6 +299,8 @@ int ProcessCarModelLump(char *lump_ptr, int lump_size)
specLoadBuffer = mallocptr - 2048; // [A] specLoadBuffer = mallocptr - 2048; // [A]
buildNewCars(); buildNewCars();
return 0;
} }

View File

@ -1,7 +1,7 @@
#ifndef OVERMAP_H #ifndef OVERMAP_H
#define OVERMAP_H #define OVERMAP_H
unsigned short civ_clut[8][32][6]; extern unsigned short civ_clut[8][32][6];
extern void DrawTargetBlip(VECTOR *pos, unsigned char r, unsigned char g, unsigned char b, unsigned long flags); // 0x00016280 extern void DrawTargetBlip(VECTOR *pos, unsigned char r, unsigned char g, unsigned char b, unsigned long flags); // 0x00016280