From 619e65ad6f4338a3f2d4969a16ff2693b022d8f7 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 19 Feb 2013 02:25:20 +0000 Subject: [PATCH] - Allow negative parameters to A_Light. SVN r4144 (trunk) --- src/p_pspr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_pspr.cpp b/src/p_pspr.cpp index 6a2176458..d91b2a88d 100644 --- a/src/p_pspr.cpp +++ b/src/p_pspr.cpp @@ -997,7 +997,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AInventory, A_Light) if (self->player != NULL) { - self->player->extralight = clamp(light, 0, 20); + self->player->extralight = clamp(light, -20, 20); } }