mirror of
https://github.com/GTAmodding/re3.git
synced 2024-12-25 06:06:06 +00:00
Removed redundant check in IsPickupModel, TestModelIndices added
This commit is contained in:
parent
998adfab90
commit
af8ffaeeae
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,12 @@ MatchModelString(const char *modelname, int16 id)
|
||||||
#undef X
|
#undef X
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
TestModelIndices(void)
|
||||||
|
{
|
||||||
|
;
|
||||||
|
}
|
||||||
|
|
||||||
STARTPATCHES
|
STARTPATCHES
|
||||||
InjectHook(0x48EB60, InitModelIndices, PATCH_JUMP);
|
InjectHook(0x48EB60, InitModelIndices, PATCH_JUMP);
|
||||||
InjectHook(0x48F030, MatchModelString, PATCH_JUMP);
|
InjectHook(0x48F030, MatchModelString, PATCH_JUMP);
|
||||||
|
|
|
@ -365,6 +365,7 @@ enum{
|
||||||
|
|
||||||
void InitModelIndices(void);
|
void InitModelIndices(void);
|
||||||
void MatchModelString(const char *name, int16 id);
|
void MatchModelString(const char *name, int16 id);
|
||||||
|
void TestModelIndices(void);
|
||||||
|
|
||||||
inline bool
|
inline bool
|
||||||
IsGlass(int16 id)
|
IsGlass(int16 id)
|
||||||
|
@ -462,7 +463,6 @@ IsPickupModel(int16 id)
|
||||||
id == MI_UZI ||
|
id == MI_UZI ||
|
||||||
id == MI_M16 ||
|
id == MI_M16 ||
|
||||||
id == MI_FLAMETHROWER ||
|
id == MI_FLAMETHROWER ||
|
||||||
id >= MI_M16 && id <= MI_FLAMETHROWER ||
|
|
||||||
id == MI_PICKUP_ADRENALINE ||
|
id == MI_PICKUP_ADRENALINE ||
|
||||||
id == MI_PICKUP_BODYARMOUR ||
|
id == MI_PICKUP_BODYARMOUR ||
|
||||||
id == MI_PICKUP_INFO ||
|
id == MI_PICKUP_INFO ||
|
||||||
|
|
Loading…
Reference in a new issue