- Macro-fied access to action function parameters.

- Deactivated debug output code in d_Dehacked.cpp.
- fixed: A_FreezeDeathChunks crashed when a player's head got spawned.


SVN r1168 (trunk)
This commit is contained in:
Christoph Oelckers 2008-08-13 22:54:24 +00:00
commit 1c034c1150
25 changed files with 443 additions and 561 deletions

View file

@ -707,11 +707,12 @@ DEFINE_ACTION_FUNCTION(AInventory, A_Light2)
DEFINE_ACTION_FUNCTION_PARAMS(AInventory, A_Light)
{
int index=CheckIndex(1);
ACTION_PARAM_START(1);
ACTION_PARAM_INT(light, 0);
if (self->player != NULL && index > 0)
if (self->player != NULL)
{
self->player->extralight = clamp<int>(EvalExpressionI (StateParameters[index], self), 0, 20);
self->player->extralight = clamp<int>(light, 0, 20);
}
}