Updated TF2_OnIsHolidayActive ret behavior to match doc (bug 5155, r=fyren).

This commit is contained in:
Nicholas Hastings 2011-11-04 10:01:33 -04:00
parent c1aa49ef3a
commit a98edd42d1

View File

@ -51,7 +51,7 @@ DETOUR_DECL_STATIC1(IsHolidayActive, bool, int, holiday)
g_isHolidayForward->PushCellByRef(&newres);
g_isHolidayForward->Execute(&result);
if (result == Pl_Changed)
if (result > Pl_Continue)
{
return (newres == 0) ? false : true;
}