dxx-rebirth/common/main
Kp 879070f814 Fix uninitialized value usage during init_player_stats_new_ship
init_player_stats_new_ship used select_primary_weapon and
select_secondary_weapon to assign the player's weapons.  However, those
functions read the current weapon and jumped according to its value.  A
new ship has no defined value for current weapons, so the jump triggered
an uninitialized value warning from Valgrind.

Add new functions set_primary_weapon, set_secondary_weapon that work
like the previous select_* functions, but always take the path used
for weapons not equal, without checking.  This prevents the warnings
from Valgrind, as well as a theoretical risk of initializing the ship
improperly.
2016-12-25 00:33:25 +00:00
..
ai.h Pass segidx_t to create_path_points 2016-12-05 00:26:09 +00:00
aistruct.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
automap.h
bm.h
cli.cpp
cli.h
cmd.cpp
cmd.h
cntrlcen.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
collide.h Changed handling of scrape_player_on_wall(), preventing it to occur multiple times per frame. 2016-12-02 13:37:08 +01:00
config.h
controls.h
credits.h
cvar.cpp
cvar.h
d_enumerate.h
digi.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
effects.h Use uint8_t for sidenum 2016-12-24 22:44:08 +00:00
endlevel.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
escort.h
fireball.h
fuelcen.h Remove unnecessary FuelCenter operator- 2016-12-22 05:21:16 +00:00
fvi.h
fwd-object.h Split valptridx declarations 2016-12-24 18:12:17 +00:00
fwd-player.h Pass player_info to allowed_to_fire_missile 2016-12-10 17:51:10 +00:00
fwd-segment.h Split valptridx declarations 2016-12-24 18:12:17 +00:00
fwd-wall.h Split valptridx declarations 2016-12-24 18:12:17 +00:00
fwd-weapon.h Fix uninitialized value usage during init_player_stats_new_ship 2016-12-25 00:33:25 +00:00
game.h Use uint8_t for sidenum 2016-12-24 22:44:08 +00:00
gamefont.h
gamemine.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
gamepal.h
gamesave.h
gameseg.h
gameseq.h Merge pull #272 into master 2016-11-26 22:51:49 +00:00
gauges.h Pass player_info to more gauges functions 2016-12-11 01:56:43 +00:00
hostage.h
hudmsg.h
inferno.h
kconfig.h Move some kconfig symbols into namespace dsx 2016-12-22 05:21:16 +00:00
kmatrix.h
laser.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
lighting.h
menu.h
mission.h
morph.h
multi.h Pass vcsegptridx to multi_send_light_specific 2016-12-10 17:51:07 +00:00
multibot.h Pass vcsegidx to multi_send_boss_teleport 2016-12-05 00:26:10 +00:00
multiinternal.h Pass vcsegptridx to multi_send_light_specific 2016-12-10 17:51:07 +00:00
net_udp.h
newdemo.h
newmenu.h Remove unused listbox_get_window 2016-12-22 05:21:16 +00:00
nvparse.h
object.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
objnum.h
paging.h
physics.h
piggy.h
player-callsign.h
player-flags.h
player.h
playsave.h
polyobj.h
powerup.h
render.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
render_state.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
robot.h
scores.h Propagate scores_maybe_add_player argument 2016-12-10 17:51:08 +00:00
screens.h
segiter.h
segment.h Use uint8_t for sidenum 2016-12-24 22:44:08 +00:00
segpoint.h
slew.h
songs.h
sounds.h
state.h
switch.h Split valptridx declarations 2016-12-24 18:12:17 +00:00
terrain.h
texmerge.h
text.h
textures.h
titles.h
valptridx.tcc
vclip.h
vers_id.h
wall.h Use uint8_t for sidenum 2016-12-24 22:44:08 +00:00
weapon.h
weapon_id.h