- 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:
parent
db5a6e3d24
commit
1c034c1150
25 changed files with 443 additions and 561 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue