From a98edd42d1883d22b8be9c8da5e783cc47e00d0c Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Fri, 4 Nov 2011 10:01:33 -0400 Subject: [PATCH] Updated TF2_OnIsHolidayActive ret behavior to match doc (bug 5155, r=fyren). --- extensions/tf2/holiday.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/tf2/holiday.cpp b/extensions/tf2/holiday.cpp index bab5a62b..a36da726 100644 --- a/extensions/tf2/holiday.cpp +++ b/extensions/tf2/holiday.cpp @@ -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; }