dxx-rebirth/common/main
Kp 03043f944e Guard Headlights by if(D2)
Descent 1 has no headlight powerup.  Code to read headlights was
incorrectly added in 357e1b0144, but no code was added to write
headlights, so the Descent 1 lighting code checked for headlights that
never existed.  Guard the headlight global variables and the associated
logic with if(D2).

Fixes: 357e1b0144 ("Made lighting code work with actual RGB values and added feature to let certain objects emit colored dynamic light as well as let mine flash red when control center destroyed (OpenGL-only at the moment)")
2017-03-11 19:56:25 +00:00
..
ai.h Pass object &to boss_init_all_segments 2017-03-01 02:48:41 +00:00
aistruct.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
automap.h Convert various static const expressions to constexpr 2016-07-16 16:52:04 +00:00
bm.h Move more symbols to namespace dsx 2016-10-02 19:35:34 +00:00
cli.cpp Fix check_header_includes=1 poison.h 2017-02-19 19:33:36 +00:00
cli.h
cmd.cpp
cmd.h
cntrlcen.h Remove calls to window_close(Game_wind) when game finished or over 2017-01-08 21:08:50 +08:00
collide.h Simplify powerup_grab_cheat_all path 2017-02-04 23:10:29 +00:00
config.h Move FPSIndicator to CCfg 2016-10-02 19:35:33 +00:00
controls.h Move conditionally compiled code into namespace dsx 2016-08-25 04:05:32 +00:00
credits.h Split credits_show special case into dedicated functions 2016-08-19 03:41:42 +00:00
cvar.cpp
cvar.h
d_enumerate.h Use utility d_enumerate for do_cloak_stuff 2016-11-19 17:24:52 +00:00
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 Pass canvas to draw_exit_model 2017-03-11 19:56:23 +00:00
escort.h Pass thief ID to recreate_thief 2016-04-06 03:34:15 +00:00
fireball.h Pass only segidx to pick_connected_segment 2016-10-02 00:34:41 +00:00
fuelcen.h Raised MAX_NUM_FUELCENS and MAX_ROBOT_CENTERS to 128. 2017-01-15 13:43:02 +01:00
fvi.h Avoid temporarily moving boss while probing layout 2017-03-01 02:48:40 +00:00
fwd-object.h Pass canvas to draw_object_blob 2017-03-11 19:56:24 +00:00
fwd-player.h Pass player_info to allowed_to_fire_missile 2016-12-10 17:51:10 +00:00
fwd-segment.h Use valptridx<wall>::magic_constant for wall_none 2017-03-04 22:25:54 +00:00
fwd-wall.h Use valptridx<wall>::magic_constant for wall_none 2017-03-04 22:25:54 +00:00
fwd-weapon.h Add back homing weapons cheat for D2 2017-01-29 21:02:48 +00:00
game.h Unify SDL/OGL save_screen_shot 2017-03-10 01:22:27 +00:00
gamefont.h Pass canvas to LINE_SPACING 2017-02-11 21:42:42 +00:00
gamemine.h Use unsigned for sides/verts in more places 2017-02-19 19:33:38 +00:00
gamepal.h
gamesave.h Move conditionally compiled code into namespace dsx 2016-08-25 04:05:32 +00:00
gameseg.h Move compute_segment_center body to dcx 2017-02-22 03:05:44 +00:00
gameseq.h Remove call to window_close(Game_wind) when multiplayer level syncing fails 2017-01-10 13:02:59 +08:00
gauges.h Pass canvas to draw_hud 2017-03-11 19:56:22 +00:00
hostage.h Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR 2016-09-11 18:49:16 +00:00
hudmsg.h Pass canvas to HUD_render_message_frame 2017-03-11 19:56:21 +00:00
inferno.h Make call_default_handler return a window_event_result 2016-10-27 16:36:24 +08:00
kconfig.h Move some kconfig symbols into namespace dsx 2016-12-22 05:21:16 +00:00
kmatrix.h
laser.h Pass player to do_laser_firing_player 2017-02-08 23:34:41 +00:00
lighting.h Guard Headlights by if(D2) 2017-03-11 19:56:25 +00:00
menu.h Move namespace dsx handling to dsx-ns.h 2016-03-19 19:08:10 +00:00
mission.h Make the listbox handlers return a window_event_result 2016-10-27 15:22:41 +08:00
morph.h Fix check_header_includes=1 Linux build 2016-08-06 19:55:24 +00:00
multi.h Remove call to window_close(Game_wind) when a network event tells us to end the game 2017-01-10 14:10:39 +08: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 Remove call to window_close(Game_wind) when multiplayer level syncing fails 2017-01-10 13:02:59 +08:00
newdemo.h Remove call to window_close(Game_wind) when stopping demo playback 2017-01-09 19:09:34 +08:00
newmenu.h Propagate Hack_DblClick_MenuMode 2017-02-11 21:42:47 +00:00
nvparse.h
object.h Use mask for Secondary_last_was_super 2017-02-19 19:33:45 +00:00
objnum.h
paging.h Move conditionally compiled code into namespace dsx 2016-08-25 04:05:32 +00:00
physics.h Remove calls to window_close(Game_wind) when game finished or over 2017-01-08 21:08:50 +08:00
piggy.h Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
player-callsign.h
player-flags.h Player keeps any keys collected on a secret level even if they die on the secret level 2017-01-29 07:54:43 +08:00
player.h Initialize obsolete fields 2017-01-01 23:19:21 +00:00
playsave.h Move more symbols to namespace dsx 2016-10-02 19:35:34 +00:00
polyobj.h Pass polymodel &to free_model 2017-02-19 19:33:44 +00:00
powerup.h Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR 2016-09-11 18:49:16 +00:00
render.h Pass canvas to render_mine 2017-03-10 01:22:28 +00:00
render_state.h Fold segnum.h into fwd-segment.h 2016-12-24 18:12:17 +00:00
robot.h Play boss looping immediately on loading saved game 2017-02-26 10:21:10 +08:00
scores.h Propagate scores_maybe_add_player argument 2016-12-10 17:51:08 +00:00
screens.h
segiter.h Return vobjptridx from segiter 2016-10-29 23:16:18 +00:00
segment.h Make segment vertices unsigned 2017-02-19 19:33:37 +00:00
segpoint.h
slew.h
songs.h Move USE_SDLMIXER to dxxsconf.h; rename to DXX_USE_SDLMIXER 2016-09-11 18:49:15 +00:00
sounds.h Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
state.h Remove call to window_close(Game_wind) when multiplayer level syncing fails 2017-01-10 13:02:59 +08:00
switch.h Remove calls to window_close(Game_wind) when game finished or over 2017-01-08 21:08:50 +08:00
terrain.h
texmerge.h Propagate constant texmerge_init argument 2016-11-19 17:24:52 +00:00
text.h Move conditionally compiled code into namespace dsx 2016-08-25 04:05:32 +00:00
textures.h Propagate MAX_TEXTURES 2016-07-10 04:11:35 +00:00
titles.h Move conditionally compiled code into namespace dsx 2016-08-25 04:05:32 +00:00
valptridx.tcc Add options for reduced-size valptridx error reporting 2017-01-28 18:12:20 +00:00
vclip.h Mark global constants as constexpr 2016-07-23 04:10:42 +00:00
vers_id.h Rename VERSION to DXX_VERSION_STR 2016-09-11 18:49:16 +00:00
wall.h Fix check_header_includes=1 wall.h 2017-02-19 19:33:36 +00:00
weapon.h Move more symbols to namespace dsx 2016-10-02 19:35:34 +00:00
weapon_id.h Reduce D1 spreadfire cost 2017-02-19 19:33:45 +00:00