mirror of
https://github.com/mapbase-source/source-sdk-2013.git
synced 2024-12-26 06:45:31 +03:00
Fixed rare activity translation recursion case
This commit is contained in:
parent
0cf49fbfa0
commit
9a939547c0
@ -2598,11 +2598,7 @@ bool CAI_BaseNPC::FValidateHintType ( CAI_Hint *pHint )
|
|||||||
Activity CAI_BaseNPC::GetHintActivity( short sHintType, Activity HintsActivity )
|
Activity CAI_BaseNPC::GetHintActivity( short sHintType, Activity HintsActivity )
|
||||||
{
|
{
|
||||||
if ( HintsActivity != ACT_INVALID )
|
if ( HintsActivity != ACT_INVALID )
|
||||||
#ifdef MAPBASE
|
|
||||||
return TranslateActivity( HintsActivity ); // Always translate the activity
|
|
||||||
#else
|
|
||||||
return HintsActivity;
|
return HintsActivity;
|
||||||
#endif
|
|
||||||
|
|
||||||
return ACT_IDLE;
|
return ACT_IDLE;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user