Kp
ad35460eb0
Pass player_info to add_bonus_points_to_score
2016-10-15 00:53:20 +00:00
Kp
25f5fc231a
Pass player_info to add_points_to_score
2016-10-15 00:53:19 +00:00
Kp
ecb91955ae
Move player::score to player_info
2016-10-15 00:53:19 +00:00
Kp
24b97e7058
Fold fspacx/fspacy calls
2016-10-15 00:53:16 +00:00
Kp
5873889b8b
Factor out common parts of add_points_to_score
2016-10-15 00:53:15 +00:00
Kp
b78474edc6
Pass player_info to player_has_secondary_weapon
2016-10-02 00:34:44 +00:00
Kp
83dd51d79b
Pass player_info to player_has_primary_weapon
2016-10-02 00:34:43 +00:00
Kp
a62cc369ab
Expand get_local_player_shields
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:40 +00:00
Kp
fe99fe232b
Expand get_local_player_vulcan_ammo
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:40 +00:00
Kp
ce65735c04
Expand get_local_player_flags
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:40 +00:00
Kp
1b321ac0c6
Expand get_local_player_secondary_ammo
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:40 +00:00
Kp
b422db5500
Expand get_local_player_cloak_time
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-10-02 00:34:39 +00:00
Kp
62b58e9890
Move OGL to dxxsconf.h; rename to DXX_USE_OGL
...
Rename symbol OGL to DXX_USE_OGL to show that it is a DXX
symbol, not one inherited from a library. Move it to dxxsconf.h to
shorten the command line.
This is a mostly automated transform, but the changes to SConstruct were
manual.
git grep -lzw OGL -- '*.h' '*.cpp' | xargs -0 sed -i -e 's/\(\s*#\s*if\)def\s*OGL/\1 DXX_USE_OGL/' -e 's/\(\s*#\s*if\)ndef OGL/\1 !DXX_USE_OGL/' -e 's/\(\s*#\s*if !\?\)defined(OGL)/\1DXX_USE_OGL/'
2016-09-24 18:06:11 +00:00
Kp
198b068da6
Expand get_local_player_energy
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-09-11 18:49:13 +00:00
Kp
c484c55153
Expand get_local_player_invulnerable_time
...
It was a convenient transition macro, but its presence was always
intended to be temporary. Expand it to ease the conversion of usage
sites that already have access to local player data through a local
variable.
2016-08-28 22:41:49 +00:00
Kp
335f24ac31
Move Primary_weapon to player_info
2016-08-28 22:41:49 +00:00
Kp
10ff2b9ea2
Change Primary_weapon_to_weapon_info key to weapon_id_type
...
Fix incorrect ID in D1 Primary_weapon_to_weapon_info. Testing suggests
that both the correct and incorrect ID produce the same results.
2016-08-28 22:41:48 +00:00
Kp
b7a5f65d5b
Move Secondary_weapon to player_info
2016-08-28 22:41:48 +00:00
Kp
e7b881e5e6
Move Secondary_last_was_super into player_info
2016-08-28 22:41:48 +00:00
Kp
adf5e57b47
Move Primary_last_was_super into player_info
2016-08-28 22:41:47 +00:00
Kp
8248438ffa
Move Omega_charge to player_info
2016-08-28 22:41:47 +00:00
Kp
ee1003f29f
Move conditionally compiled code into namespace dsx
2016-08-25 04:05:32 +00:00
Kp
6d311a97e9
Move hud weapon functions into namespace dsx
2016-08-25 04:05:32 +00:00
Kp
23a85cae27
Cache some get_local_player_invulnerable_time references
2016-07-25 03:48:09 +00:00
Kp
dcdff564f4
Fold newdemo_record_primary_ammo in draw_hud
2016-07-14 01:59:04 +00:00
Kp
6251848c5f
Move Missile_gun into player_info
2016-07-06 01:54:25 +00:00
Kp
15f2471be0
Cache reference to local player shields
2016-07-03 00:54:16 +00:00
Kp
96b258e958
Cache reference to local player flags
2016-07-03 00:54:15 +00:00
Kp
65f68877aa
Rewrite simple integer casts from C style to static_cast<>
...
This pass only targets commonly used standard types.
s/(\(\s*\(\(un\)\?signed\|int\|char\|short\|long\|float\|double\|s\?size_t\|\(u\?int[[:digit:]]\+_t\)\)\)\s*)\s*(/static_cast<\1>(/g
2016-06-16 03:56:44 +00:00
zico
320b5aa8f0
Fixed regression from bbda32f78d8f227785fe294b5a9786724611d370: Due to GR_FADE_LEVELS being unsigned if statements in draw_player_ship() broke regarding the cloak fade levels. Fixed by some casts.
2016-06-13 14:43:04 +02:00
Kp
1b12a3f7ef
Add parentheses around target of more complicated casts
...
C casts do not require parentheses. C++ casts require grouping around
the target. Prepare for conversion to C++ casts by adding otherwise
unnecessary parentheses around the target of some C casts.
This pass attempts to process expressions that involve parenthesized or
bracketed subexpressions, but only if those subexpressions do not
themselves contain parenthesized or bracketed subexpressions.
(int) f(1); // changed
(int) f(g()); // not changed
perl -p -i -e 's/(\(\s*((?:un)?signed|int|char|short|long|float|double|s?size_t|(?:u?int[[:digit:]]+_t))\s*\**\s*\)\s*)([&+-]?)([[:alnum:]_.]+\s*->\s*)*([[:alnum:]_.]+)((?:\s*(?:\[[^][]*\])*|(?:\([^()]*\))*))(\s*([;+>*\/^%,|&<>])|$|(\s*-\s*[^>]))/\1\(\3\4\5\6\)\7/g'
2016-06-12 03:45:37 +00:00
Kp
b282bea173
Rewrite simple integer casts from C style to static_cast<>
...
This pass only targets commonly used standard types.
s/(\(\s*\(\(un\)\?signed\|int\|char\|short\|long\|float\|double\|s\?size_t\|\(u\?int[[:digit:]]\+_t\)\)\)\s*)\s*(/static_cast<\1>(/g
2016-06-05 01:04:26 +00:00
Kp
82a8f6ebb0
Pass bm_mode to gr_init_bitmap
2016-05-28 17:31:27 +00:00
Kp
5b3a36e6b8
Remove valptridx operator-(P *, A &)
2016-04-06 03:34:13 +00:00
zico
ab89dcd366
Reworked 586ba9ff6db85b976f074589c5dd7e2d6ff40cd1: Show player ping along with player kills/scores and made it a toggle for HUD configuration so the player can enable it permanently
2016-03-30 20:09:46 +02:00
zico
586ba9ff6d
Added ability to show ping on HUD player list (to cycle via F7)
2016-03-30 13:54:21 +02:00
Kp
d5a12ba5af
Cache afterburner bar temporaries
2016-02-20 17:28:11 +00:00
Kp
0bf60e5661
Hide bogus demo cloak/invul timers
...
Demo files do not record cloak/invulnerability times, so the playback
code sets a fake time of "50% elapsed" for the entire time that the
effect is active. This causes two problems in playback. The first,
which always applied, but was mostly ignored, is that the viewer does
not get the blinking warning that the effect will expire soon. The
second, which became visible with the addition of cloak/invulnerability
digital timers, is that demos always report "15" as the time remaining,
for the entire time that the effect is active. Old demos cannot be
fixed, so hide the problem by forcing the timers to be hidden when
viewing a demo.
2016-02-20 17:28:11 +00:00
Kp
c3003fbb22
Fix vulcan ammo display
...
Do not abuse `f2i` to shift an unsigned quantity. `f2i` is defined to
work on `fix`, which is `int`.
2016-02-20 17:28:11 +00:00
zico
081e5d5e3c
Removed rounding offset of x starting coordinate in ogl_ulinec which should hopefully unwanted horizontal offsets in Status Bar energy and afterburner gauges (without causing more problems) if Multisampling is applied
2016-02-14 13:59:02 +01:00
Kp
6091b65707
Move score to screen edge for CM_FULL_SCREEN
...
The score is moved in from the edge to avoid overlapping the cockpit
graphic, but the move was applied even when no cockpit was shown.
Change it to align the score when running without the cockpit graphic.
Reported-by: roncli <https://github.com/dxx-rebirth/dxx-rebirth/issues/175 >
2016-02-12 04:02:28 +00:00
Kp
938032e51d
Unify gauges draw paths
2016-02-12 04:02:28 +00:00
Kp
cc18ad2b68
Fix some -Wshadow warnings
2016-02-12 04:02:28 +00:00
Kp
08de1bbff0
Remove cv_color
...
It is only ever set to 0 or copied from other canvases. Set it to zero
everywhere.
2016-02-12 04:02:28 +00:00
Kp
f4e1ebb576
Remove unnecessary gr_setcolor calls
2016-02-12 04:02:28 +00:00
Kp
5f073b6546
Avoid reloading cv_color in reticle drawer
2016-02-12 04:02:28 +00:00
Kp
36bd39babe
Pass color to gr_line
2016-02-12 04:02:28 +00:00
Kp
3c73d44771
Pass color to gr_disk
2016-02-12 04:02:28 +00:00
Kp
ecb71ba22e
Pass color to gr_ucircle
2016-02-12 04:02:28 +00:00
Kp
de08a67321
Pass color to gr_ubox
2016-02-12 04:02:28 +00:00
Kp
23047b1165
Pass color to gr_rect
2016-02-12 04:02:28 +00:00
Kp
053901b62b
Pass color to gr_uline
2016-02-12 04:02:28 +00:00
Kp
1c04cb70d9
Change ogl_ubitmapm_cs constant -1 to const white
2016-02-12 04:02:28 +00:00
Kp
e39b609553
Factor out calls to draw_weapon_info_sub
2016-01-09 16:38:15 +00:00
Kp
a3ae630829
Remove default argument for basic_ptridx(index)
2016-01-09 16:38:14 +00:00
Kp
0d15877010
Remove sprintf from gauges.cpp
2016-01-03 20:21:36 +00:00
Kp
025c8dec31
Force kill gauge to 0% efficiency for (kills+deaths<=0)
2015-12-18 04:08:23 +00:00
Kp
2b51578ba6
Use enum class for Player_dead_state (formerly Player_is_dead)
2015-12-15 04:09:35 +00:00
zico
6c5bfaf0d1
Make sure Vulcan ammo shows for D1X in vertical HUD modes. Enabled vulcan ammo gauge for Cockpit and Status Bar modes
2015-12-11 13:37:30 +01:00
Kp
708dc0a7e1
Use vobjptr/vcobjptr for more Objects[] access
2015-12-03 03:26:49 +00:00
Kp
b683b4cc68
Scope weapon type
2015-12-03 03:26:49 +00:00
Kp
90e3c29464
Fix visual off-by-one in energy bar
...
Reported-by: Ryusei117 <http://www.dxx-rebirth.com/frm/index.php/topic,2075.0.html >
2015-11-21 18:12:13 +00:00
Kp
66cbd4ae0a
Move shields/energy up another line in large games
2015-11-15 22:30:41 +00:00
Kp
5f5fd23060
Use enum class for HUD type
2015-11-14 18:17:22 +00:00
Kp
44753209d6
Move homing_object_dist to object.ctype.player_info
2015-11-14 18:17:22 +00:00
Kp
52051c427b
Move invulnerable_time to object.ctype.player_info
2015-11-14 18:17:21 +00:00
Kp
9eb8aba4c9
Move cloak_time to object.ctype.player_info
2015-11-14 18:17:21 +00:00
Kp
6b353cb9ac
Move player powerup_flags to object.ctype.player_info
2015-11-07 21:55:59 +00:00
Kp
8a81e25ab0
Move player laser_level to object.ctype.player_info
2015-11-07 21:55:59 +00:00
Kp
b788d0b563
Move player primary_weapon_flags to object.ctype.player_info
2015-11-07 21:55:59 +00:00
Kp
e227ef1b32
Move player secondary_ammo to object.ctype.player_info
2015-11-07 21:55:58 +00:00
Kp
4d2673594e
Fix placement of invulnerability timer
2015-11-06 03:51:10 +00:00
Kp
47ebd05bc3
Use ?: for homing warning gauge
2015-10-30 02:52:57 +00:00
Kp
df5e02aed0
Use macro get_local_player_invulnerable_time for player's invulnerable_time
2015-10-30 02:52:56 +00:00
Kp
0285efe49d
Use macro get_local_player_cloak_time for player's cloak_time
2015-10-30 02:52:56 +00:00
Kp
17b8b64980
Use macro get_local_player_flags for player's flags
2015-10-30 02:52:56 +00:00
Kp
92f78caf22
Use macro get_local_player_vulcan_ammo for player's vulcan_ammo
2015-10-30 02:52:56 +00:00
Kp
dc5dfb80e8
Use macro get_local_player_secondary_ammo for player's secondary_ammo
2015-10-30 02:52:56 +00:00
Kp
ea5b7a08c1
Use macro get_local_player_energy for local player's energy
2015-10-30 02:52:55 +00:00
Kp
3ffd207e44
Use macro get_local_player_shields for local player's shields
2015-10-30 02:52:55 +00:00
Kp
1af81af4ec
Reorder show_HUD_names bool tests
...
This improves the generated code by ~60 instructions.
2015-10-30 02:52:55 +00:00
Kp
f50189dc23
Factor out gauge box color computation
2015-10-30 02:52:55 +00:00
Kp
070444157e
Use type safe player flags
2015-10-30 02:52:55 +00:00
Kp
ff2c88c498
Factor out cockpit/statusbar key gauges
2015-10-30 02:52:54 +00:00
Kp
533f1cb3bb
Qualify references to primary weapons
2015-10-18 21:01:18 +00:00
Kp
61f6c81f74
Use std::replace for rewriting count to wide 1s
2015-10-10 03:44:14 +00:00
Kp
48b7416433
Factor out gauge width string
2015-10-09 02:46:11 +00:00
Kp
e2c6e8449f
Factor out cloak/invul timer display
2015-10-03 17:17:49 +00:00
Kp
50f672ba34
Reuse computed string length
2015-09-29 02:41:22 +00:00
Kp
3d37b01177
Refactor draw_numerical_display
2015-09-29 02:41:22 +00:00
Kp
af949820b6
Use ?: for show_bomb_count gr_set_fontcolor
2015-09-29 02:41:22 +00:00
Kp
574555029f
Simplify sb_show_score sprintf
2015-09-29 02:41:22 +00:00
Kp
d9cef82f81
Allow nullptr for gr_get_string_size
2015-09-29 02:41:22 +00:00
zico
cbe0b4ec69
Added Cloak and Invulnerability Timers to Cockpit and Statusbar and made this feature optional (defaults to off)
2015-09-27 10:51:37 +02:00
Kp
888cfddabd
Combine gauges left/right window boxes
2015-09-13 21:02:19 +00:00
Kp
83f77fbc48
Use fill_n to store runs of cockpitbuf TRANSPARENCY_COLOR
2015-09-13 21:02:19 +00:00
Kp
c4a8432081
Remove WORDS_NEED_ALIGNMENT memcpy src cast to const uint8_t*
...
The cast provokes a warning on systems that require alignment, so remove
it. memcpy takes const void* input, so the cast is unnecessary.
Reported-by: MattWatt <https://github.com/dxx-rebirth/dxx-rebirth/issues/119 >
2015-09-13 21:02:19 +00:00
zico
30e909226f
Fixed Primary weapon info position in HiRes cockpit mode; Removed redundant vulcan ammo display in Fullscreen Alt HUD #1
2015-08-18 19:17:24 +02:00
zico
fb6ea072e4
Repositioned (non Release) HUD level time output and FPS counter to fixed positions across all cockpit modes; Slight reformat for FPS counter and added FrameTime display (in ms) if -verbose is given
2015-08-16 15:37:30 +02:00
Kp
bda7fef3a0
Use get_local_player to compute reference to local player
2015-07-25 23:10:46 +00:00
Kp
70c4cc87ab
Use forward-declaration header for weapon.h
2015-07-25 23:10:45 +00:00
Kp
06a7bdfd87
Use valptr for gauges.cpp
2015-07-12 01:04:20 +00:00
Kp
268f9649af
Fix secondary weapon text alignment
...
Fixes: 2d70cd65ea
("Cache font space results")
Reported-by: zico <https://github.com/dxx-rebirth/dxx-rebirth/issues/112 >
2015-06-28 21:02:46 +00:00
Kp
e3308be8b9
Cache font LINE_SPACING
2015-06-13 22:42:22 +00:00
Kp
3905f1a668
Enable -Wcast-qual
2015-06-13 22:42:21 +00:00
Kp
2d70cd65ea
Cache font space results
2015-06-13 22:42:20 +00:00
Kp
78f6dc29a6
Cache font scale Y float
2015-06-13 22:42:20 +00:00
Kp
5573ed6bea
Cache font scale X float
2015-06-13 22:42:20 +00:00
Kp
f788de2e9f
Avoid repeated strlen while truncating gauge name
2015-06-13 22:42:20 +00:00
Kp
b2887abd51
Cache globals in hud_show_cloak_invuln
2015-06-13 22:42:20 +00:00
Kp
379a2a32b7
Use operator?: for similar gr_printf in gauges
2015-06-13 22:42:19 +00:00
Kp
27b6012e20
Fix hang in statusbar mode when energy>100
...
Reported-by: Mako88 <https://github.com/dxx-rebirth/dxx-rebirth/issues/78 >
2015-05-30 16:06:05 +00:00
Kp
ac3b1d6aa3
Switch do_cockpit_window_view to vobjptr_t
...
Only the wake_up_rendered_objects hack needed a vobjptridx_t. Switch to
vobjptr_t.
2015-05-13 03:20:28 +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
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
62d04866c4
Propagate hud_show_weapons_mode for variable i
2015-04-19 04:18:53 +00:00
Kp
bee882dc99
Refactor gauges weapon coloring
...
Move logic into smaller functions to give the compiler more choices
about inlining.
2015-04-19 04:18:52 +00:00
Kp
98dc7cb90c
Optimize D1 super weapon handling
...
D1 has no super weapons. Remove the check for them.
2015-04-19 04:18:52 +00:00
Kp
aa4c5efbb9
Replace HAS_PRIMARY_FLAG(x) with HAS_x_FLAG
2015-04-19 04:18:50 +00:00
Kp
9d213b5282
Wrap player_has_weapon return type
2015-04-19 04:18:50 +00:00
Kp
2f86499144
Remove do_cockpit_window_view unused parameters
2015-04-02 02:36:57 +00:00
Kp
b1d8114b7d
Reduce sb_show_lives lookup of HIRESMODE
2015-04-02 02:36:53 +00:00
Kp
90fbebf8fd
Convert most global arrays to array<>
2015-04-02 02:36:52 +00:00
Kp
66a70fd373
Prepare for global arrays to be array<>
2015-04-02 02:36:52 +00:00
Kp
fca381727c
Add wrappers for screen width/height
2015-03-22 18:49:21 +00:00
Kp
b414758505
Add stub for player color remapping
2015-03-09 03:33:07 +00:00
Kp
72a01bf56c
Add indirection for player color lookup
2015-03-09 03:33:07 +00:00
Kp
68e2168377
Use array<> for bitmap_index arrays
2015-02-14 22:48:30 +00:00
Kp
004e1371d6
Split valid/nonvalid cases of do_cockpit_window_view
2015-02-14 22:48:28 +00:00
Kp
078d9513e0
Pass end-of-list for ignore_obj_list
2015-02-05 03:03:51 +00:00
Kp
4c8f3a47b5
Convert frequently used casts to C++ casts
2015-02-05 03:03:49 +00:00
Kp
c8b5fe5552
Pass find_vector_intersection arg by &
2015-01-20 02:46:42 +00:00
Kp
84e3a03451
Remove unused parameters
2015-01-18 01:58:33 +00:00
Kp
c731558a94
Pass gr_init_sub_canvas arg by &
2015-01-17 18:31:40 +00:00
Kp
2d8f8b5d4a
Reduce inclusion of wall.h
2014-12-22 04:35:49 +00:00
Kp
9ffd958d3d
Create window_rendered_data locally
2014-12-18 04:12:38 +00:00
Kp
7c98dea8be
Pass render_frame arg by &
2014-12-13 04:11:21 +00:00
Kp
4bcf451745
Pass wake_up_rendered_objects arg by &
2014-12-13 04:11:07 +00:00
Kp
e027c821c9
Pass update_rendered_data arg by &
2014-12-13 04:11:04 +00:00
Kp
355df375a0
Pass gr_bitmap arg as &
2014-12-02 03:35:01 +00:00
Kp
7031c809fc
Pass gr_ubitmapm arg by &
2014-12-02 03:35:01 +00:00
Kp
5eddc2c197
Make bitmap bm_data const where easy
2014-12-02 03:24:38 +00:00
Kp
26f4aaa51b
Pass gr_set_transparent arg by &
2014-11-30 22:09:21 +00:00
Kp
d0abc13c94
Pass gr_create_sub_bitmap arg by &
2014-11-30 22:09:21 +00:00
Kp
53ce29e789
Pass gr_init_bitmap arg by &
2014-11-30 22:09:20 +00:00
Kp
0236c237ed
Pass ogl_freebmtexture arg by &
2014-11-30 22:09:20 +00:00
Kp
166f15617d
Pass ogl_ubitmapm_cs arg by &
2014-11-30 22:09:18 +00:00
Kp
f206b3b127
Reduce inclusion of object.h
2014-11-23 04:36:58 +00:00
Kp
9baeb31162
Pass rle_end arg by &
2014-11-13 03:41:38 +00:00
Kp
baa39fe8f7
Add g3_rotate_point that returns result
2014-11-13 03:41:29 +00:00
Kp
ff13155fc2
Pass g3_project_point arg by &
2014-11-13 03:21:33 +00:00
Kp
c88fb72b81
Fix bogus -Wmaybe-uninitialized at -Og
...
At -Og, gcc fails to recognize that txtweapon is always initialized.
Add a default:continue; to suppress the warning and trust high
optimization levels to delete the default case.
2014-11-02 16:18:24 +00:00
Kp
bc3a76c673
Hoist gauge loop iterations
2014-11-01 15:28:07 +00:00
Kp
53aa70cecb
Use vsegptridx_t
2014-10-28 03:08:51 +00:00
Kp
5885fa2f4f
Remove unused draw_ammo_info parameter primary
2014-10-17 01:57:30 +00:00
Kp
68211d20d3
Pass g3_rotate_point arg by &
2014-10-02 03:02:35 +00:00
Kp
a5723ed187
Adjust Player_num checks for unsigned Player_num
2014-09-27 22:57:15 +00:00
Kp
e6b9f3f923
Use typedef for player number
2014-09-21 22:10:12 +00:00
Kp
fcd4926d5d
Fix cosmetic bug in vulcan ammo display
...
If the player has a gauss cannon, vulcan ammo, and no vulcan cannon, and
has never selected the gauss cannon, gauges showed 'A'. 'A' should
appear only if neither weapon is available. Use 'G' in this situation.
2014-07-27 01:20:46 +00:00
Kp
9778c1a151
Use unique_ptr to manage sub bitmaps
2014-07-22 23:48:24 +00:00
Kp
44d1924e96
Use special type for player callsign
2014-07-05 19:20:56 +00:00
Matt Vandermeulen
28f307eb85
Fixes #5 - Byteswap header renamed to byteutil, plus sed magic
...
[Kp: switch to #pragma for byteutil.h]
2014-07-03 02:03:08 +00:00
Kp
3abc33d6cc
Optimize gr_rle_decode
2014-06-30 23:56:51 +00:00
Kp
a301eb97ed
Cast fix64->unsigned long in HUD
...
Fix format warning when unsigned long is smaller than fix64
2014-06-28 03:50:08 +00:00
Kp
743cb49ed8
Make cockpit_decode_alpha static
2014-06-08 00:05:33 +00:00
zico
ad7cb106bc
Changed custom D1X license to GPLv3
2014-06-01 19:55:23 +02:00
Kp
073f00974a
Eliminate uses of the typedef struct X { ... } X; pattern
...
C++ does not require this pattern.
import re, fileinput
to = re.compile(r'^typedef struct ([a-z_A-Z]+)\s*{')
tc = re.compile(r'^}(.*?)\s*([a-z_A-Z]+);$')
osn = None
for line in fileinput.input(inplace=True):
m = to.match(line)
if m:
osn = m.group(1)
print 'struct %s\n{' % osn
continue
if osn:
m = tc.match(line)
if m:
csn = m.group(2)
if osn == csn:
print '}%s;' % m.group(1)
osn = None
continue
else:
osn = None
print line,
2013-12-28 22:48:07 +00:00
Kp
94ce68f556
Color code weapon gauges
2013-12-28 22:21:00 +00:00
Kp
88ec115c38
Show cloak/invulnerability time remaining on HUD
2013-12-22 20:02:23 +00:00
Kp
0938e819e5
Advertise map-mode via overload of typing-mode
...
Tell other clients when map mode is active, for the same reason that
typing mode is advertised.
2013-12-18 04:51:46 +00:00
Kp
be742f8848
Use powerup_basic_str instead of powerup_basic where possible
2013-12-17 04:03:34 +00:00
Kp
f8756b2c19
Combine composition of IFF name/indicator
2013-12-15 01:50:29 +00:00
Kp
70149044c1
Switch gr_printf(x,y,s) to gr_string(x,y,s)
2013-12-06 04:02:13 +00:00
Kp
2714679284
Mark private functions static
2013-11-02 04:23:55 +00:00
Kp
5b0c4b10ac
Use accessor for most get/set object->id accesses
2013-10-20 22:49:09 +00:00
Kp
743fe4cf0e
Fix Descent display of primary weapon names
2013-10-09 01:54:12 +00:00
Kp
9c65aa3cc5
Move similar/main/gauges.c -> similar/main/gauges.cpp
2013-10-05 21:35:58 +00:00