diff options
author | Sergeanur <s.anureev@yandex.ua> | 2019-10-26 20:25:45 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2019-10-26 20:25:45 +0200 |
commit | af8ffaeeaebd99236b6076c9e342ff65f4786466 (patch) | |
tree | b8de098668cfd92ca6580fa34fe37acc0f4d1a53 | |
parent | Fixed use of boolean type for in CGameLogic (diff) | |
download | re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.tar re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.tar.gz re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.tar.bz2 re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.tar.lz re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.tar.xz re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.tar.zst re3-af8ffaeeaebd99236b6076c9e342ff65f4786466.zip |
-rw-r--r-- | src/modelinfo/ModelIndices.cpp | 6 | ||||
-rw-r--r-- | src/modelinfo/ModelIndices.h | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/modelinfo/ModelIndices.cpp b/src/modelinfo/ModelIndices.cpp index 9a8aaead..bf6b3905 100644 --- a/src/modelinfo/ModelIndices.cpp +++ b/src/modelinfo/ModelIndices.cpp @@ -26,6 +26,12 @@ MatchModelString(const char *modelname, int16 id) #undef X } +void +TestModelIndices(void) +{ + ; +} + STARTPATCHES InjectHook(0x48EB60, InitModelIndices, PATCH_JUMP); InjectHook(0x48F030, MatchModelString, PATCH_JUMP); diff --git a/src/modelinfo/ModelIndices.h b/src/modelinfo/ModelIndices.h index 4a6e80d0..20d1b7f3 100644 --- a/src/modelinfo/ModelIndices.h +++ b/src/modelinfo/ModelIndices.h @@ -365,6 +365,7 @@ enum{ void InitModelIndices(void); void MatchModelString(const char *name, int16 id); +void TestModelIndices(void); inline bool IsGlass(int16 id) @@ -462,7 +463,6 @@ IsPickupModel(int16 id) id == MI_UZI || id == MI_M16 || id == MI_FLAMETHROWER || - id >= MI_M16 && id <= MI_FLAMETHROWER || id == MI_PICKUP_ADRENALINE || id == MI_PICKUP_BODYARMOUR || id == MI_PICKUP_INFO || |