Rev |
Age |
Author |
Path |
Log message |
Diff |
3803 |
2886d 2h |
terminx |
/polymer/eduke32/source/actors.c |
Add support for shareware 0.99/1.0/1.1, for shits and giggles. |
|
3743 |
2899d 8h |
helixhorned |
/polymer/eduke32/source/actors.c |
Tweak r3681 to obtain the same behavior in the pre-r3681 undefined behavior case.
That is, assume that switch(DYNAMICTILEMAP(-1)) (which is an oob access and thus
undefined behavior) gets us to the 'default:' label. |
|
3715 |
2910d 1h |
helixhorned |
/polymer/eduke32/source/actors.c |
Generalize ZRANGE and ANGRANGE to accept any nonnegative number.
Numbers 0 and 1 mean 'no spread', but the latter does one krand() call.
Negative numbers are reserved for potential future use. |
|
3713 |
2911d 4h |
helixhorned |
/polymer/eduke32/source/actors.c |
Fix TARGET sprites used as switches, introduced in r3679. |
|
3694 |
2918d 1h |
helixhorned |
/polymer/eduke32/source/actors.c |
A couple of trivial stylistic changes. |
|
3686 |
2923d 1h |
helixhorned |
/polymer/eduke32/source/actors.c |
Fix A_MoveSprite() wrongly reporting sector hit without z change after r3678. |
|
3683 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
TROR no-SE7 water: spawn splash, reuse calculated other sector number. |
|
3682 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
Improve on the code that handles changing sectors of projectiles.
- In the A_MoveSprite() code that transports projectiles due to an SE7
(introduced in r1450 / legacy ROR), only report "success" if the
transportation succeeded.
- Clear newly introduced internal SPRITE_DIDNOSE7WATER flag after
checking it. |
|
3681 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
In G_MoveStandables() CRACKx handling, fix oob access of DynamicTileMap[].
Also, in two cases, don't assign A_IncurDamage() result to a variable if
it's not needed. |
|
3680 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
Fix a couple of issues identified in the preceding commit.
- In S_PlaySound(), move the sound index bound check above an indexing.
- For A_CheckHitSprite(), and A_FindPlayer(), allow NULL second arg.
- In A_ShootWithZvel(), make some one-letter vars be int32_t, making
storing safeldist() results in them meaningful.
- In MaybeTrainKillEnemies(), remove two redundant checks and move another
one further up.
- Comment that SIDEBOLT1 will never be translucent as was probably intended.
- In G_MoveFX(), fix an always-true comparison. |
|
3679 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
Clean up of mostly actors.c, but some other files along the way too.
- Rewrite some sprites-of-{stat,sector} loops using the SPRITES_OF,
SPRITES_OF_SECT and new SPRITES_OF_SECT_SAFE macros.
- In passing, identify some problems and mark them with 'XXX', but don't
attempt to fix them yet.
- The usual readability improvements... |
|
3678 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
TROR no-SE7 water: handle projectiles.
Actually, the tweaked code in VM_Move() is not specific to projectiles, so
other sprites now may pass no-SE7 water boundaries too, but it's most noticeable
with projectiles. |
|
3677 |
2924d 10h |
helixhorned |
/polymer/eduke32/source/actors.c |
TROR no-SE7 water: allow boundary change only if other-side lotag is other one.
That is, if submerging, the lower sector MUST have lotag 2. If emerging, the
upper sector MUST have lotag 1. (Previously, emersion happened from ST 2 sectors
unconditionally.) This means that the area where submersion or emersion can
happen is now the same for the top and bottom parts. |
|
3647 |
2934d 3h |
helixhorned |
/polymer/eduke32/source/actors.c |
Factor out displaying episode ending cutscenes into G_BonusCutscenes().
Also,
- retire IFWITHIN() macro, preferring expanding it
- fix _endofgame() in control.lua |
|
3645 |
2934d 3h |
helixhorned |
/polymer/eduke32/source/actors.c |
Define a macro LUNATIC_EXTERN that expands to 'static' in non-Lunatic builds. |
|
3635 |
2938d 2h |
helixhorned |
/polymer/eduke32/source/actors.c |
Fix handling of SE31 pointing upward. A bug was introduced in r2607. |
|
3631 |
2939d 2h |
helixhorned |
/polymer/eduke32/source/actors.c |
Fix playing ambient sounds at max volume for split sec on entering their range.
This is done by always calling FX_PlayAuto3D() to play such sounds. It now
additionally takes a third argument 'loophow', permissible values being
FX_ONESHOT and FX_LOOP. |
|
3626 |
2941d 5h |
helixhorned |
/polymer/eduke32/source/actors.c |
Return early from A_IncurDamage() if actor[].picnum ("htpicnum" in CON) is < 0.
With this change, it is impossible for negative values to be used as array
indices inside this function, and I believe that it is also impossible that
they escape to somewhere they might be used as such.
For Lunatic, allow setting actor[].picnum to negative values and in the
translator, add (commented out) code to warn whenever it is set to a constant
negative value. Also, fix a _sound call in _addphealth in control.lua. |
|
3597 |
2946d 2h |
helixhorned |
/polymer/eduke32/source/actors.c |
Lunatic: actor usertypes from CON, set SFLAGs as 2nd gameactor() arg in Lua.
In passing, fix a couple of omissions: gameactor() being passed nil's in the
middle, more than one moveflag to CON *actor. |
|
3576 |
2951d 14h |
hendricks266 |
/polymer/eduke32/source/actors.c |
Add to r3544. |
|