Kp
94fe1117d7
Remove canvas juggling in save_screen_shot
2017-04-08 16:48:19 +00:00
Kp
d827e73de9
Pass canvas &to draw_item
2017-04-08 16:48:19 +00:00
Kp
71fdb5b8f0
Cache canvas in polygon_models_viewer_handler
2017-04-08 16:48:18 +00:00
Kp
795eeecb3f
Move marquee data to substructure
2017-03-26 21:53:47 +00:00
Kp
d580328698
Combine direct_join allocations
2017-03-25 19:34:03 +00:00
Kp
7e19a790ae
Use array<> for port strings
2017-03-25 19:34:02 +00:00
Kp
b358946924
Show host address/port in timeout message
2017-03-25 19:34:02 +00:00
Kp
d5ed019014
Add experimental MP-aware mouselook
2017-03-25 19:34:02 +00:00
Kp
17a09d83d2
Pass canvas to render_object_search
2017-03-18 18:07:39 +00:00
Kp
ea7c44c680
Pass vcobjptridx_t to draw_polygon_object
2017-03-18 18:07:39 +00:00
Kp
bafc96c76a
Pass bounding bitmap to DefineBriefingBox
2017-03-18 18:07:38 +00:00
Kp
179b2e3fd4
Pass canvas to init_spinning_robot
2017-03-18 18:07:38 +00:00
Kp
866516f8f2
Shorten set_briefing_fontcolor
2017-03-18 18:07:38 +00:00
Kp
8fd6c13383
Fold briefing N/O handling
2017-03-18 18:07:38 +00:00
Kp
d987f9e4ef
Pass canvas to briefing_process_char
2017-03-18 18:07:38 +00:00
Kp
f837cc9675
Clean up briefing get_message_name
2017-03-18 18:07:38 +00:00
Kp
99d45e8651
Pass font to put_char_delay
2017-03-18 18:07:38 +00:00
Kp
ca8d62b108
Make briefing Current_color point to chosen element
2017-03-18 18:07:37 +00:00
Kp
6f086dbf90
Propagate briefing constants
...
Check array sizes, not the magic numbers which happen to match that
size.
2017-03-18 18:07:37 +00:00
Kp
8f0f7b7319
Simplify get_new_message_num
2017-03-18 18:07:37 +00:00
Kp
1335af4b51
Simplify get_message_num
2017-03-18 18:07:37 +00:00
Kp
056115642b
Move console.cpp specific constants out of header
2017-03-18 18:07:36 +00:00
Kp
0f57787601
Use enum for console priorities
2017-03-18 18:07:36 +00:00
Kp
829e95b6f8
Separate hoard/proximity tracking
2017-03-18 18:07:36 +00:00
Kp
104169dada
Move multi_maybe_disable_friendly_fire to dcx
2017-03-18 18:07:36 +00:00
Kp
9878ba2311
Move intro_played to dsx
2017-03-18 18:07:35 +00:00
Kp
59c8da2ac7
Pass bitmap to rescale_y
2017-03-11 19:56:30 +00:00
Kp
f9aa31ed64
Pass bitmap to rescale_x
2017-03-11 19:56:30 +00:00
Kp
6c0be636ea
Combine draw_item case branches
2017-03-11 19:56:29 +00:00
Kp
a245e47fcc
Pass canvas to nm_string_inputbox
2017-03-11 19:56:29 +00:00
Kp
b21fc54ba4
Pass canvas to nm_string_black
2017-03-11 19:56:29 +00:00
Kp
a7344b7dd0
Pass canvas to nm_string_slider
2017-03-11 19:56:29 +00:00
Kp
51a69a5a65
Pass canvas to nm_draw_background1
2017-03-11 19:56:29 +00:00
Kp
089f185d3c
Remove unused rule classes
...
zico removed all uses of these classes in 3366658a5b
, but did not
remove their definitions. No one has tried to repurpose them, so remove
the definitions.
Fixes: 3366658a5b
("Updated 'Netgame Rules & Info' screen, added option to toggle it ingame via SHIFT-PAUSE, added hint to netgame help menu")
2017-03-11 19:56:29 +00:00
Kp
869baefa07
Fold calls to kmatrix_status_msg
2017-03-11 19:56:29 +00:00
Kp
8dff2f0048
Pass canvas to kmatrix_status_msg
2017-03-11 19:56:28 +00:00
Kp
98b34b9328
Pass canvas to kmatrix_draw_coop_names
2017-03-11 19:56:28 +00:00
Kp
efde3f7e33
Pass canvas to kmatrix_draw_names
2017-03-11 19:56:28 +00:00
Kp
f10e418264
Pass canvas to kmatrix_draw_item
2017-03-11 19:56:28 +00:00
Kp
85eddb8d02
Pass canvas to render_endlevel_frame
2017-03-11 19:56:28 +00:00
Kp
38be68c345
Pass canvas to endlevel_render_mine
2017-03-11 19:56:28 +00:00
Kp
c4be6d2057
Pass canvas to render_external_scene
2017-03-11 19:56:27 +00:00
Kp
970ce18410
Pass canvas to render_object
2017-03-11 19:56:27 +00:00
Kp
56d5c7da91
Pass canvas to draw_polygon_object
2017-03-11 19:56:27 +00:00
Kp
8cf1082ce6
Pass canvas to draw_cloaked_object
2017-03-11 19:56:27 +00:00
Kp
25c36d4b0e
Pass canvas to draw_morph_object
2017-03-11 19:56:27 +00:00
Kp
2d9cfbd9ab
Pass canvas to draw_model
2017-03-11 19:56:27 +00:00
Kp
262d6c6c27
Pass canvas to g3_draw_morphing_model
2017-03-11 19:56:27 +00:00
Kp
e1d0d0603f
Pass canvas to draw_hostage
2017-03-11 19:56:26 +00:00
Kp
f0707cb9bd
Pass canvas to draw_powerup
2017-03-11 19:56:26 +00:00
Kp
a55de34884
Pass canvas to Laser_render
2017-03-11 19:56:26 +00:00
Kp
753cbafe61
Pass canvas to render_terrain
2017-03-11 19:56:26 +00:00
Kp
a6fc1f6357
Pass canvas to draw_cell
2017-03-11 19:56:26 +00:00
Kp
34b603ad71
Expand bomb spin variance
...
Let D1 proximity bombs spin. Let D2 smart mines and pre-placed mines
spin.
2017-03-11 19:56:26 +00:00
Kp
7d36df315e
Simplify draw_weapon_vclip
2017-03-11 19:56:25 +00:00
Kp
113aa50a2a
Pass canvas to draw_fireball
2017-03-11 19:56:25 +00:00
Kp
48d9f2cd19
Pass vclip to draw_vclip_object
2017-03-11 19:56:25 +00:00
Kp
450b3ec4f5
Pass canvas to draw_weapon_vclip
2017-03-11 19:56:25 +00:00
Kp
48a6adbe87
Pass canvas to draw_vclip_object
2017-03-11 19:56:25 +00:00
Kp
bc11b3bf85
Pass const object to draw_object_tmap_rod
2017-03-11 19:56:25 +00:00
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
Kp
a5444cfef1
Shorten compute_object_light
2017-03-11 19:56:24 +00:00
Kp
a6c8087815
Remove unused compute_object_light parameter rotated_pnt
2017-03-11 19:56:24 +00:00
Kp
dfbcc02346
Pass const object to compute_object_light
2017-03-11 19:56:24 +00:00
Kp
84faf8aa73
Pass canvas to draw_object_blob
2017-03-11 19:56:24 +00:00
Kp
26e1ce21fe
Pass canvas to draw_stars
2017-03-11 19:56:24 +00:00
Kp
4e1156a996
Use canvas in OGL g3_draw_sphere
2017-03-11 19:56:24 +00:00
Kp
9ccddf5366
Pass canvas to draw_exit_model
2017-03-11 19:56:23 +00:00
Kp
86880af317
Cache canvas in credits_handler
2017-03-11 19:56:23 +00:00
Kp
72ce5d7e66
Pass canvas to draw_all_edges
2017-03-11 19:56:23 +00:00
Kp
719de35484
Pass grs_bitmap to gr_pixel
2017-03-11 19:56:23 +00:00
Kp
c725a6cb88
Pass canvas to gr_init_font
2017-03-11 19:56:22 +00:00
Kp
0c8220cc07
Pass canvas to game_draw_hud_stuff
2017-03-11 19:56:22 +00:00
Kp
afb52a5a3e
Pass canvas to draw_hud
2017-03-11 19:56:22 +00:00
Kp
014734834c
Switch gr_printf calls to local canvas
2017-03-11 19:56:22 +00:00
Kp
a19286437a
Pass canvas to show_mousefs_indicator
2017-03-11 19:56:22 +00:00
Kp
4b6f42a962
Pass canvas to show_reticle
2017-03-11 19:56:22 +00:00
Kp
cee6c984bd
Pass canvas to hud_show_kill_list
2017-03-11 19:56:21 +00:00
Kp
5e1b27120d
Pass canvas to HUD_render_message_frame
2017-03-11 19:56:21 +00:00
Kp
74d4833591
Factor out automap common assignments
2017-03-10 01:22:34 +00:00
Kp
d8dc2ed985
Cache intermediate results in automap_build_edge_list
2017-03-10 01:22:33 +00:00
Kp
858807e2a5
Use range_for in automap
2017-03-10 01:22:33 +00:00
Kp
adefaf0fba
Simplify automap_find_edge result
2017-03-10 01:22:33 +00:00
Kp
b10ec2cb01
Cache canvas in newmenu_create_structure
2017-03-10 01:22:33 +00:00
Kp
e304f43efa
Cache canvas in kmatrix_redraw_coop
2017-03-10 01:22:33 +00:00
Kp
d5b7178fe5
Cache canvas in kmatrix_redraw
2017-03-10 01:22:33 +00:00
Kp
f1d65f6b46
Cache canvas in kconfig_mouse
2017-03-10 01:22:33 +00:00
Kp
10522fd1ff
Cache canvas in kconfig_draw
2017-03-10 01:22:32 +00:00
Kp
40943a6baf
Cache canvas in draw_player_ship
2017-03-10 01:22:32 +00:00
Kp
07fbab437b
Cache canvas in draw_invulnerable_ship
2017-03-10 01:22:32 +00:00
Kp
653c7666c9
Cache canvas in draw_weapon_box
2017-03-10 01:22:32 +00:00
Kp
3a4789c285
Pass canvas to draw_weapon_info
2017-03-10 01:22:32 +00:00
Kp
685187e2d0
Pass canvas to draw_secondary_weapon_info
2017-03-10 01:22:32 +00:00
Kp
4dae87044b
Pass canvas to draw_primary_weapon_info
2017-03-10 01:22:31 +00:00
Kp
6651489643
Pass canvas to draw_weapon_info_sub
2017-03-10 01:22:31 +00:00
Kp
27140a30b9
Pass canvas to draw_numerical_display
...
Remove unnecessary extra call to draw_numerical_display.
2017-03-10 01:22:31 +00:00
Kp
fa81835b96
Pass canvas to show_cockpit_cloak_invul_timer
2017-03-10 01:22:31 +00:00
Kp
e583019958
Pass canvas to draw_shield_bar
2017-03-10 01:22:31 +00:00
Kp
0132750380
Pass canvas to draw_afterburner_bar
2017-03-10 01:22:31 +00:00
Kp
4ecae34ec5
Pass canvas to sb_draw_shield_num
2017-03-10 01:22:30 +00:00