Kp
6d9de0d177
Use partial_range for font width
2015-05-09 17:39:02 +00:00
Kp
d2cded3ad4
Combine gr_internal_string0{,m}
2015-05-09 17:39:01 +00:00
Kp
b1ed5b86e2
Return get_char_width results by value
2015-05-09 17:39:01 +00:00
Kp
2e2c17669c
Shorten timer_delay
2015-05-09 17:39:01 +00:00
Kp
b1992b5e59
Shorten timer_delay2
2015-05-09 17:39:01 +00:00
Kp
9312b0b00f
Remove write-only variable multi_do_guided::fun
2015-05-09 17:39:01 +00:00
Kp
ed86b53395
Make Muzzle_queue_index static
2015-05-09 17:39:01 +00:00
Kp
1cdc43d71a
Split object_create_egg
2015-05-09 17:39:01 +00:00
Kp
f5b02ce6a0
Remove write-only ai_static D1 follow_path_start_seg
2015-05-09 17:39:01 +00:00
Kp
7dae02fbb4
Remove write-only ai_static D1 follow_path_end_seg
2015-05-09 17:39:00 +00:00
Kp
3b59a71e11
Remove unused D1 last_see_time
2015-05-09 17:39:00 +00:00
Kp
83baf4dfe8
Remove unused D1 last_attack_time
2015-05-09 17:39:00 +00:00
Kp
d9c3005134
Factor out egg skip logic
2015-05-09 17:39:00 +00:00
Kp
9a4f7a32bf
Pass vcsegptr to fuelcen_give_fuel
2015-05-09 17:39:00 +00:00
Kp
7eea02e4f8
Fix paging in wrong texture for homing missiles
2015-05-09 17:39:00 +00:00
Kp
21aed0488f
Hoist gr_setcolor in gr_internal_string_clipped_template
2015-05-09 17:39:00 +00:00
Kp
2fc4ca8d5a
Cache variables in gr_internal_string_clipped_template
2015-05-09 17:39:00 +00:00
Kp
cf87ebe54d
Remove write-only grs_bitmap::bm_handle
2015-05-09 17:38:59 +00:00
Kp
bbadf1fe3e
Reduce gr_internal_string_clipped_template variable scope
2015-05-09 17:38:59 +00:00
Kp
9d238af808
Switch gr_internal_string_clipped_template to count down loops
2015-05-09 17:38:59 +00:00
Kp
2d423ca383
Combine gr_internal_string_clipped{_m}
2015-05-09 17:38:59 +00:00
Kp
aea5df067d
Cache locals in get_char_width
2015-05-09 17:38:59 +00:00
Kp
4b0f257698
Pass find_kern_entry grs_font by &
2015-05-09 17:38:59 +00:00
Kp
1017802e48
Combine get_char_width and get_char_width_f as template
2015-05-09 17:38:59 +00:00
Kp
c9ef463a16
Mark gr_message_color_level const
2015-05-09 17:38:59 +00:00
Kp
f3aa8e501b
Simplify extract_vector_from_segment
2015-05-09 17:38:59 +00:00
Kp
a51a7110e8
Pass vobjptridx_t to multi_send_position
2015-05-09 17:38:59 +00:00
Kp
9386ac4a24
Pass vobjptridx_t to multi_compute_kill
...
The code previously trapped if killed<0 || killer<0, so use vobjptridx_t
instead of objptridx_t.
2015-05-09 17:38:58 +00:00
Kp
b5eae4c809
Split create_smart_children
2015-05-09 17:38:58 +00:00
Kp
08a42a68ff
Pass vcobjptridx to laser_are_related
2015-05-09 17:38:58 +00:00
Kp
7e65d73e72
Factor out laser_are_related special cases
2015-05-09 17:38:58 +00:00
Kp
36ce989db6
Refactor get_next_segment
2015-05-09 17:38:58 +00:00
Kp
bac03fdfd9
Split draw_weapon_info
2015-05-09 17:38:58 +00:00
Kp
8cb0572199
Split hud_show_weapons_mode
2015-05-09 17:38:57 +00:00
Kp
14ffc1690d
Fix SDL gauges build
2015-05-09 17:38:57 +00:00
Kp
fc4b686d9d
Store PHYSFS_list element count in list when needed
2015-05-09 17:38:57 +00:00
Kp
168533bca0
Fix super weapon selection message
2015-05-06 02:11:03 +00:00
Kp
e590cc59ee
Hack around bogus none in guidebot path
2015-05-05 03:20:43 +00:00
Kp
c408194a53
Cast away determine_used_textures_level shareware_flag
2015-05-05 03:20:42 +00:00
Kp
68834fb929
Expand render_mine window_rendered_data helper inline
2015-05-05 03:20:42 +00:00
Kp
9ff846d27c
Use array<> for vertex lighting
2015-05-05 03:20:42 +00:00
Bradley Bell
630206275d
Include <functional> for std::plus and std::minus.
...
Fixes: similar/main/kconfig.cpp:81:12: error: no member named 'plus' in namespace 'std'
Fixes: similar/main/kconfig.cpp:82:12: error: no member named 'minus' in namespace 'std'
[Kp: fixed commit formatting. Git style says line 2 is always blank.]
2015-05-01 02:29:11 +00:00
Kp
f7eaf36ad3
Fix rotate_uv_point with -Wmissing-field-initializers
...
gcc-5 -Wmissing-field-initializers allows initialization by empty
braces, causing SConf not to pass -Wno-missing-field-initializers.
Change rotate_uv_point to return an explicitly 0 light to fix the
resulting warning.
2015-04-30 03:32:27 +00:00
Kp
23af709aa0
Remove unused Outline_mode
...
clang whines for unused `static const` variables. Remove unused
Outline_mode to eliminate the warning.
Reported-by: btb <21f6d0d52b
>
2015-04-30 03:32:27 +00:00
Kp
0d564814f5
Convert Primary_weapon to primary_weapon_index_t
2015-04-26 20:15:57 +00:00
Kp
f668705f20
Use array<> for Computed_colors
2015-04-26 20:15:57 +00:00
Kp
67e5e8c6c1
Remove unused gr_make_blend_table
2015-04-26 20:15:57 +00:00
Kp
ace2235ad8
Remove unused gr_make_cthru_table
2015-04-26 20:15:57 +00:00
Kp
9274e56a41
Simplify gr_find_closest_color exit
2015-04-26 20:15:56 +00:00
Kp
8d849b2b39
Wrap laser level in class
...
Move enum laser_level_t to weapon.h for the new class.
2015-04-26 20:15:56 +00:00
Kp
6792c1bc4b
Enable -Wunused-parameter
2015-04-26 20:15:56 +00:00
Kp
2772cf619f
Pass local_multires_gauge_graphic to PAGE_IN_GAUGE
2015-04-26 20:15:56 +00:00
Kp
5a6cca499f
Pass hud_bitblt grs_bitmap by &
2015-04-26 20:15:56 +00:00
Kp
78e415a502
Unify draw_weapon_info_sub picture selection
2015-04-26 20:15:56 +00:00
Kp
1412e41de2
Pass local_multires_gauge_graphic to sb_draw_keys
2015-04-26 20:15:56 +00:00
Kp
1111548f7f
Pass local_multires_gauge_graphic to sb_draw_one_key
2015-04-26 20:15:55 +00:00
Kp
5f9bfe8a72
Pass local_multires_gauge_graphic to sb_draw_shield_bar
2015-04-26 20:15:55 +00:00
Kp
4b4fd713f1
Pass local_multires_gauge_graphic to sb_draw_shield_num
2015-04-26 20:15:55 +00:00
Kp
6d92f79a40
Pass local_multires_gauge_graphic to sb_draw_afterburner
2015-04-26 20:15:55 +00:00
Kp
23759f1700
Pass local_multires_gauge_graphic to sb_draw_energy_bar
2015-04-26 20:15:55 +00:00
Kp
4ecbe230cf
Pass local_multires_gauge_graphic to draw_static
2015-04-26 20:15:55 +00:00
Kp
49bd4f3805
Pass local_multires_gauge_graphic to draw_secondary_ammo_info
2015-04-26 20:15:55 +00:00
Kp
8836e1750a
Pass local_multires_gauge_graphic to draw_weapon_info
2015-04-26 20:15:55 +00:00
Kp
11b144ff43
Pass local_multires_gauge_graphic to draw_weapon_info_sub
2015-04-26 20:15:55 +00:00
Kp
d3b20d60b6
Pass local_multires_gauge_graphic to draw_keys
2015-04-26 20:15:55 +00:00
Kp
d12c0162cb
Pass local_multires_gauge_graphic to draw_one_key
2015-04-26 20:15:54 +00:00
Kp
1e9b0c5e39
Pass local_multires_gauge_graphic to draw_player_ship
2015-04-26 20:15:54 +00:00
Kp
4b056a8a99
Pass local_multires_gauge_graphic to draw_shield_bar
2015-04-26 20:15:54 +00:00
Kp
2185552f53
Pass local_multires_gauge_graphic to draw_invulnerable_ship
2015-04-26 20:15:54 +00:00
Kp
2b3250ee3f
Pass local_multires_gauge_graphic to draw_afterburner_bar
2015-04-26 20:15:54 +00:00
Kp
a7f74bd383
Pass local_multires_gauge_graphic to draw_energy_bar
2015-04-26 20:15:54 +00:00
Kp
f7abe3b2e1
Pass local_multires_gauge_graphic to draw_wbu_overlay
2015-04-26 20:15:54 +00:00
Kp
d5a446381b
Pass local_multires_gauge_graphic to cockpit_decode_alpha
2015-04-26 20:15:54 +00:00
Kp
f7f4ec8ee8
Pass local_multires_gauge_graphic to sb_show_lives
2015-04-26 20:15:54 +00:00
Kp
0493737c79
Pass local_multires_gauge_graphic to hud_show_lives
2015-04-26 20:15:54 +00:00
Kp
1c11d731ec
Pass local_multires_gauge_graphic to draw_primary_ammo_info
2015-04-26 20:15:53 +00:00
Kp
980d161119
Split draw_weapon_boxes
2015-04-26 20:15:53 +00:00
Kp
c2f39d9b0f
Pass local_multires_gauge_graphic to hud_show_flag
2015-04-26 20:15:53 +00:00
Kp
59c9b54814
Pass local_multires_gauge_graphic to hud_show_orbs
2015-04-26 20:15:53 +00:00
Kp
f9fc9660a5
Pass local_multires_gauge_graphic to hud_show_keys
2015-04-26 20:15:53 +00:00
Kp
ff8d7d754a
Pass local_multires_gauge_graphic to show_homing_warning
2015-04-26 20:15:53 +00:00
Kp
1aa91b95af
Pass local_multires_gauge_graphic to sb_show_score
2015-04-26 20:15:53 +00:00
Kp
4ff86bc63a
Pass local_multires_gauge_graphic to hud_gauge_bitblt
2015-04-26 20:15:53 +00:00
Kp
1845769717
Pass local_multires_gauge_graphic to hud_bitblt
2015-04-26 20:15:53 +00:00
Kp
ff0ed0288f
Cache hiresmode at function scope
2015-04-26 20:15:53 +00:00
Kp
b5b6a10688
Move gauges HIRESMODE lookup into method
2015-04-26 20:15:53 +00:00
Kp
c599cde8a4
Factor out statusbar key drawing
2015-04-26 20:15:52 +00:00
Kp
69073bd6b0
Reduce writes to draw_invulnerable_ship::time
2015-04-26 20:15:52 +00:00
Kp
fa401cd1d8
Convert PAGE_IN_GAUGE to ternary operator
2015-04-26 20:15:52 +00:00
Kp
4156fabddb
Only page in needed key gauges
2015-04-26 20:15:52 +00:00
Kp
275cb40595
Factor out paging in gauges
2015-04-26 20:15:52 +00:00
Kp
b94e5bd2e7
Factor out key drawing
2015-04-26 20:15:52 +00:00
Kp
cca163fc30
Split select_weapon
2015-04-26 20:15:52 +00:00
Kp
f789e29b41
Simplify check_to_use_primary
2015-04-26 20:15:52 +00:00
Kp
610f603ebf
Pass weapon_name to select_weapon
2015-04-26 20:15:52 +00:00
Kp
d161b17191
Factor out shareware/unusable weapon handling
2015-04-26 20:15:51 +00:00
Kp
10b9206a9b
Split do_weapon_select
2015-04-26 20:15:51 +00:00
Kp
4d046c5336
Split auto_select_weapon
2015-04-26 20:15:51 +00:00
Kp
8e5a63700b
Use enum class for ai_mode
2015-04-26 20:15:51 +00:00
Kp
f15ec9c86a
Use enum for AIM constants
2015-04-26 20:15:51 +00:00