player.c: factoring continued.
New local functions: Proj_DoRandDecalSize, SectorContainsSE13, HandleHitWall, Proj_CheckBlood, Proj_HandleKnee.
1 gennaio 2013 · 11 commit di 1 autore · SVN
------------------------------------------------------------------------
r3362 | helixhorned | 2013-01-01 07:24:42 -0800 (Tue, 01 Jan 2013) | 5 lines
player.c: factoring continued.
New local functions:
Proj_DoRandDecalSize, SectorContainsSE13, HandleHitWall, Proj_CheckBlood,
Proj_HandleKnee.
------------------------------------------------------------------------
r3361 | helixhorned | 2013-01-01 07:24:39 -0800 (Tue, 01 Jan 2013) | 4 lines
player.c: cleanup. "ProjectileData[atwith]." --> "proj->", ...
The diff may look daunting, but it's clear what is changed with
git diff (...) --color-words='[a-zA-Z0-9_]+|[^[:space:]]' -b
------------------------------------------------------------------------
r3360 | helixhorned | 2013-01-01 07:24:36 -0800 (Tue, 01 Jan 2013) | 3 lines
player.c: finish hitscan projectile handling cleanup.
Factoring out 2x almost duplicated code into {P,A}_PostFireHitscan().
------------------------------------------------------------------------
r3359 | helixhorned | 2013-01-01 07:24:33 -0800 (Tue, 01 Jan 2013) | 1 line
player.c: hitscan projectile handling cleanup continued.
------------------------------------------------------------------------
r3358 | helixhorned | 2013-01-01 07:24:31 -0800 (Tue, 01 Jan 2013) | 6 lines
player.c: factor out 2x almost dup'd code preparing hitscan weapon firing.
The code is duplicated with small changes for the hardcoded and custom
projectiles.
Adding local functions P_PreFireHitscan(), A_PreFireHitscan() and
Proj_MaybeAddSpread().
------------------------------------------------------------------------
r3357 | helixhorned | 2013-01-01 07:24:28 -0800 (Tue, 01 Jan 2013) | 1 line
Lunatic: more code...
------------------------------------------------------------------------
r3356 | helixhorned | 2013-01-01 07:24:25 -0800 (Tue, 01 Jan 2013) | 3 lines
Factor out some code into C_AllocQuote() and C_InitQuotes().
In Lunatic-only build, also always allocate the first 128 quotes.
------------------------------------------------------------------------
r3355 | helixhorned | 2013-01-01 07:24:22 -0800 (Tue, 01 Jan 2013) | 1 line
Lunatic: definesound, more control.lua fixes.
------------------------------------------------------------------------
r3354 | helixhorned | 2013-01-01 07:24:18 -0800 (Tue, 01 Jan 2013) | 1 line
Lunatic: compile out more code with LUNATIC_ONLY.
------------------------------------------------------------------------
r3353 | helixhorned | 2013-01-01 07:24:14 -0800 (Tue, 01 Jan 2013) | 1 line
Clean up actors.c and player.c.
------------------------------------------------------------------------
r3352 | helixhorned | 2013-01-01 07:24:11 -0800 (Tue, 01 Jan 2013) | 4 lines
Lunatic: fix stack discipline.
Preventing a continuously growing stack top and inevitable program termination.
Also, commonize the error handling to live on the engine side.
------------------------------------------------------------------------
New local functions: Proj_DoRandDecalSize, SectorContainsSE13, HandleHitWall, Proj_CheckBlood, Proj_HandleKnee.
The diff may look daunting, but it's clear what is changed with git diff (...) --color-words='[a-zA-Z0-9_]+|[^[:space:]]' -b
Factoring out 2x almost duplicated code into {P,A}_PostFireHitscan().
The code is duplicated with small changes for the hardcoded and custom projectiles. Adding local functions P_PreFireHitscan(), A_PreFireHitscan() and Proj_MaybeAddSpread().
In Lunatic-only build, also always allocate the first 128 quotes.
Preventing a continuously growing stack top and inevitable program termination. Also, commonize the error handling to live on the engine side.