dxx-rebirth/similar/main
Kp 98c9374a12 Simplify powerup_grab_cheat_all path
Movement handling has an ugly hack that tries to grab powerups near the
console player, but it reuses general collision handling and fails to
check whether the player is alive.

Add a liveness check.  Place the check so that it happens once, before
the objects are scanned, rather than being needlessly repeated for every
object.

Refactor the collision code to let the movement hack skip the parts it
does not need.

Reported-by: ryusei117 <https://github.com/dxx-rebirth/dxx-rebirth/issues/302#issuecomment-275816259>
2017-02-04 23:10:29 +00:00
..
ai.cpp Simplify test for weapon_info::homing_flag 2017-01-29 21:02:38 +00:00
aipath.cpp Pass segidx_t to create_path_points 2016-12-05 00:26:09 +00:00
automap.cpp Initialize grs_main_bitmap at construction 2017-01-28 18:12:20 +00:00
bm.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
cntrlcen.cpp Remove calls to window_close(Game_wind) when game finished or over 2017-01-08 21:08:50 +08:00
collide.cpp Simplify powerup_grab_cheat_all path 2017-02-04 23:10:29 +00:00
config.cpp
console.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
controls.cpp
credits.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
digiobj.cpp
dumpmine.cpp Use valptridx for ActiveDoors 2016-12-10 17:51:08 +00:00
effects.cpp Use uint8_t for sidenum 2016-12-24 22:44:08 +00:00
endlevel.cpp Small efficiency improvement for a return value in do_endlevel_frame() 2017-01-09 09:26:32 +08:00
fireball.cpp Prevent treating dying players as weapons 2017-01-28 18:12:21 +00:00
fuelcen.cpp Create robot_create function and use it 4x 2017-01-22 17:56:50 +08:00
fvi.cpp
game.cpp Simplify powerup_grab_cheat_all path 2017-02-04 23:10:29 +00:00
gamecntl.cpp Merge branch cheats2 into master 2017-01-31 03:57:59 +00:00
gamefont.cpp
gamemine.cpp
gamerend.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
gamesave.cpp Remove some remotely-triggerable fatal exceptions 2017-01-28 18:12:20 +00:00
gameseg.cpp Optimize change_light search 2017-01-15 00:03:14 +00:00
gameseq.cpp Add back homing weapons cheat for D2 2017-01-29 21:02:48 +00:00
gauges.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
hostage.cpp
hud.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
iff.cpp Initialize grs_main_bitmap at construction 2017-01-28 18:12:20 +00:00
inferno.cpp Add hack to compensate for memdebug premature scan 2016-12-08 03:32:06 +00:00
kconfig.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
kmatrix.cpp Initialize grs_main_bitmap at construction 2017-01-28 18:12:20 +00:00
laser.cpp Switch last_hitobj to use array<objnum_t> instead of bitset 2017-01-15 00:03:13 +00:00
lighting.cpp Pass cobjptridx to apply_light 2017-01-31 04:25:06 +00:00
menu.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
mglobal.cpp Use valptridx for ActiveDoors 2016-12-10 17:51:08 +00:00
mission.cpp Fix failure to unmap custom hogs 2016-12-17 18:39:18 +00:00
morph.cpp
multi.cpp Fix harmless type mismatch 2017-01-28 18:12:20 +00:00
multibot.cpp Remove unnecessary FuelCenter operator- 2016-12-22 05:21:16 +00:00
net_udp.cpp Workaround Debian Jessie gcc bug 2017-01-21 19:05:44 +00:00
newdemo.cpp Fix invalid access reading demos 2017-01-28 18:12:21 +00:00
newmenu.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
object.cpp Fix bug #306 where a client in a multiplayer game hitting a wall fails an assert 2017-01-15 18:11:54 +08:00
paging.cpp
physics.cpp Remove calls to window_close(Game_wind) when game finished or over 2017-01-08 21:08:50 +08:00
piggy.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
player.cpp
playsave.cpp
polyobj.cpp Pass canvas to gr_clear_canvas 2017-01-01 00:45:45 +00:00
powerup.cpp
render.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
robot.cpp
scores.cpp Pass canvas to gr_{,u}string 2017-01-08 22:32:00 +00:00
segment.cpp
slew.cpp
songs.cpp
state.cpp Add hack for old savegames on boss levels 2017-02-04 23:10:29 +00:00
switch.cpp Remove some remotely-triggerable fatal exceptions 2017-01-28 18:12:20 +00:00
terrain.cpp
texmerge.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
text.cpp
titles.cpp Get 'baldguy' cheat to work for Mac Descent 1 data 2017-01-29 13:05:57 +08:00
vclip.cpp
vers_id.cpp
wall.cpp Add special case to make past releases not die on various segnums 2017-01-21 19:05:43 +00:00
weapon.cpp Add back homing weapons cheat for D2 2017-01-29 21:02:48 +00:00