mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 18:32:42 +01:00
- DMODEL -> MDL
This commit is contained in:
parent
58a7e4a2f6
commit
92822bc52a
@ -292,7 +292,7 @@ char* LoadCarModelFromFile(char* dest, int modelNumber, int type)
|
|||||||
char* mem;
|
char* mem;
|
||||||
char filename[64];
|
char filename[64];
|
||||||
|
|
||||||
sprintf(filename, "LEVELS\\%s\\CARMODEL_%d_%s.DMODEL", LevelNames[GameLevel], modelNumber, CarModelTypeNames[type-1]);
|
sprintf(filename, "LEVELS\\%s\\CARMODEL_%d_%s.MDL", LevelNames[GameLevel], modelNumber, CarModelTypeNames[type-1]);
|
||||||
if(FileExists(filename))
|
if(FileExists(filename))
|
||||||
{
|
{
|
||||||
mem = (char*)(dest ? dest : (_other_buffer + modelNumber * 0x10000 + (type-1) * 0x4000));
|
mem = (char*)(dest ? dest : (_other_buffer + modelNumber * 0x10000 + (type-1) * 0x4000));
|
||||||
|
Loading…
Reference in New Issue
Block a user