Kp
5070f0f0ec
Propagate MAX_INSTANCE_DEPTH
2016-07-10 04:11:34 +00:00
Kp
e2b28eafcc
Use range_for for _rle_expand_texture
2016-07-10 04:11:34 +00:00
Kp
1486a5a01b
Move Robot_sound_volume to dcx
2016-07-09 17:58:36 +00:00
Kp
1bd32fedb5
Remove unused STRING_LENGTH
2016-07-09 17:58:35 +00:00
Kp
a63fe62cb3
Add typedef for multi_allow_powerup_text type
2016-07-09 17:58:35 +00:00
Kp
2713baf5d3
Move HUD_MESSAGE_LENGTH to hud.cpp
2016-07-09 17:58:35 +00:00
Kp
e8d5992797
Remove unused CENTER_STRING_LENGTH
2016-07-09 17:58:35 +00:00
Kp
7af34fa844
Fold create_n_segment_path calls
2016-07-09 17:58:35 +00:00
Kp
be8022ff41
Add typedef for GMNames array
2016-07-09 17:58:35 +00:00
Kp
3779bc25a0
Define Robot_names only if EDITOR
2016-07-09 17:58:34 +00:00
Kp
fee76e6ced
Define Powerup_names only if EDITOR
2016-07-09 17:58:34 +00:00
Kp
7d07c24a5a
Invert sense of digi.cpp firstplay to already_playing
...
Invert the sense so that the variable can be bss-initialized. Rename
the variable to reflect the inverted sense.
2016-07-09 17:58:34 +00:00
Kp
2ccfdfcbc3
Make digi_win32_midi_song_playing static
2016-07-09 17:58:34 +00:00
Kp
0bed5d4727
Rewrite simple HMIDIOUT casts from C style to reinterpret_cast<>
...
s/(\(HMIDIOUT\))(/reinterpret_cast<\1>(/g
2016-07-08 04:14:59 +00:00
Kp
95d3a9d31c
Rewrite simple DWORD casts from C style to static_cast<>
...
s/(\(DWORD\))(/static_cast<\1>(/g
2016-07-08 04:14:59 +00:00
Kp
c8e8c568ff
Add parentheses around target of simple HMIDIOUT
casts
...
s/(\s*HMIDIOUT\s*)\s*\([&+-]\?\)\([[:alnum:]_.]\+\s*->\s*\)*\([[:alnum:]_.]\+\)\(\s*\([];+>)*\/^%,|&<>]\)\|$\|\(\s*-\s*[^>]\)\)/(HMIDIOUT)(\1\2\3)\4/g
2016-07-08 04:14:58 +00:00
Kp
2bc994e673
Add parentheses around target of simple DWORD
casts
...
s/(\s*DWORD\s*)\s*\([&+-]\?\)\([[:alnum:]_.]\+\s*->\s*\)*\([[:alnum:]_.]\+\)\(\s*\([];+>)*\/^%,|&<>]\)\|$\|\(\s*-\s*[^>]\)\)/(DWORD)(\1\2\3)\4/g
2016-07-08 04:14:58 +00:00
Kp
59fb7fa4cb
Convert hmp casts from C style to reinterpret_cast<>
2016-07-07 03:08:13 +00:00
Kp
9511ca8aaf
Convert simple multi fix casts from C style to static_cast<>
2016-07-07 03:08:13 +00:00
Kp
a7c64d6f97
Convert simple int casts from C style to static_cast<>
2016-07-07 03:08:13 +00:00
Kp
1dd60cc5be
Rewrite simple fix64 casts from C style to static_cast<>
...
s/(\(fix\(64\)\?\))\s*\(\w\+\);/static_cast<\1>(\3);/g
2016-07-07 03:08:13 +00:00
Kp
9128ff7c35
Move Next_laser_fire_time to player_info
2016-07-06 01:54:26 +00:00
Kp
bd3db75108
Move Next_missile_fire_time to player_info
2016-07-06 01:54:26 +00:00
Kp
a554d7e2c4
Move Next_flare_fire_time into player_info
2016-07-06 01:54:25 +00:00
Kp
6251848c5f
Move Missile_gun into player_info
2016-07-06 01:54:25 +00:00
Kp
6a9ea1a256
Remove unnecessary index tracking in choose_missile_viewer
2016-07-06 01:54:25 +00:00
Kp
a1f67167ce
Use static_cast for check_effect_blowup
2016-07-06 01:54:25 +00:00
Kp
3c71aa812e
Use static_cast for check_trans_wall
2016-07-06 01:54:25 +00:00
Kp
837b46b9b3
Use static_cast for load_mine_data_compiled fix casts
2016-07-06 01:54:25 +00:00
Kp
b6fd8572d1
Simplify ui_radio_set_value loop
2016-07-06 01:54:25 +00:00
Kp
e92a7aea14
Use C++ static_cast for gadget downcast
2016-07-06 01:54:25 +00:00
Kp
37d6a652c9
Remove useless casts in box.cpp
2016-07-06 01:54:24 +00:00
Kp
d32afbdac5
Rewrite simple unsigned int casts from C style to static_cast<>
...
s/(unsigned int)\s*(/static_cast<uint32_t>(/g
2016-07-06 01:54:24 +00:00
Kp
b0a2205a4e
Convert various pointer casts to reinterpret_cast
2016-07-06 01:54:24 +00:00
Kp
275355994d
Remove useless scanline casts
2016-07-06 01:54:24 +00:00
Kp
262094237f
Rewrite simple numeric casts from C style to static_cast<>
...
s/(\(int\|float\|fix\))\s*(/static_cast<\1>(/g
2016-07-06 01:54:24 +00:00
zico
5d2b2891ad
Addition to 32b9202e1f
, making clear_missile_viewer() return if Missile_viewer was set to NULL and only trigger WBU_STATIC in that case, preventing static display when cycling through right cockpit window view
2016-07-04 14:31:30 +02:00
Kp
3fe581c84a
Cache reference to local player object
2016-07-03 00:54:16 +00:00
Kp
3272caed7d
Cache reference to local player energy
2016-07-03 00:54:16 +00:00
Kp
15f2471be0
Cache reference to local player shields
2016-07-03 00:54:16 +00:00
Kp
3b0fccd899
Cache reference to local player secondary ammo
2016-07-03 00:54:15 +00:00
Kp
b9804e6e58
Cache reference to local player cloak time
2016-07-03 00:54:15 +00:00
Kp
c3e2edaff0
Cache reference to local player invulnerable time
2016-07-03 00:54:15 +00:00
Kp
96b258e958
Cache reference to local player flags
2016-07-03 00:54:15 +00:00
Kp
b35a893d9a
Rewrite simple pointer casts from C style to reinterpret_cast<>
...
s/(\s*\(\w\+\s*\*\+\)\s*)\s*(/reinterpret_cast<\1>(/g
2016-07-03 00:54:15 +00:00
Kp
efce2e50dc
Rewrite simple integer casts from C style to static_cast<>
...
s/(\s*\(u\?int[[:digit:]]\+_t\s*\)\s*)\s*(/static_cast<\1>(/g
2016-07-03 00:54:15 +00:00
Kp
f5aed82d83
Rewrite simple pointer casts from C style to reinterpret_cast<>
...
This pass only targets int16_t and uint16_t.
s/(\s*\(u\?int16_t\s*\*\+\)\s*)\s*(/reinterpret_cast<\1>(/g
2016-07-03 00:54:14 +00:00
Kp
19f31eb420
Rewrite simple pointer casts from C style to reinterpret_cast<>
...
This pass only targets int8_t and uint8_t.
s/(\s*\(u\?int8_t\s*\*\+\)\s*)\s*(/reinterpret_cast<\1>(/g
2016-07-03 00:54:14 +00:00
Kp
a7ceee3c03
Add parentheses around target of simple unsigned char
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 simple C casts.
s/(\s*unsigned\s\+char\s*\(\*\+\)\s*)\s*\([&+-]\?\)\([[:alnum:]_.]\+\s*->\s*\)*\([[:alnum:]_.]\+\)\(\s*\([];+>)*\/^%,|&<>]\)\|$\|\(\s*-\s*[^>]\)\)/(uint8_t \1)(\2\3\4)\5/g
2016-07-03 00:54:14 +00:00
Kp
c7953a3df1
Fix Win32 use of static_cast where reinterpret_cast is needed
2016-07-02 02:04:11 +00:00