Kp
c3c4ab8e3e
Pass canvas to gr_box
2017-01-01 00:45:44 +00:00
Kp
dac1a69f7c
Pass canvas to gr_ubox
2017-01-01 00:45:44 +00:00
Kp
1b57e9a5ff
Pass canvas to show_fullscr
2017-01-01 00:45:43 +00:00
Kp
250bf58e51
Pass canvas to gr_bitmapm
2017-01-01 00:45:43 +00:00
zico
daad12106d
Fixed texture malformations of op_tmappoly in g3_draw_morphing_model_state().
2016-12-30 14:49:40 +01:00
zico
24bd4170f4
Added debug key combo DEL+M to generate a morphing robot in the player segment, rotating through all available bots. Handy for testing purposes.
2016-12-30 14:45:47 +01:00
Kp
3a4eafac03
Add workaround for passive thief bot
...
zicodxx reports that f7d0c85
made the thief bot passive and timid.
His analysis suggests that the problem is because f7d0c85
changed
find_connected_distance to return vm_distance::maximum_value() in places
where it previously returned magic values that were not maximum (caching
a distance of F1_0*1000 and returning a distance of -1). Rather than
try to fix the underlying code that relied on these magic values, revert
those return paths to return these unusual values. Move the unusual
values to named constants in file scope so that they are easier to find
and correlate.
Reported-by: zicodxx <https://github.com/dxx-rebirth/dxx-rebirth/issues/286 >
Analyzed-by: zicodxx
Fixes: f7d0c853ba
("Use special types for distance/magnitude")
2016-12-29 03:27:14 +00:00
Kp
362d526546
Pass canvas to gr_disk
2016-12-29 03:27:13 +00:00
Kp
acd309099b
Pass canvas to gr_ucircle
2016-12-29 03:27:13 +00:00
Kp
08d0aa9b59
Pass canvas to gr_bitmap
2016-12-29 03:27:13 +00:00
Kp
d7cd6d17c3
Pass canvas to gr_ubitmapm
2016-12-29 03:27:13 +00:00
Kp
6ab3b18657
Pass canvas to gr_ubitmap
2016-12-29 03:27:12 +00:00
Kp
99f5cfbb10
Pass canvas to ogl_ubitmapm_cs
2016-12-29 03:27:12 +00:00
Kp
1b617b9d5c
Pass canvas to gr_ubitmapGENERICm
2016-12-29 03:27:12 +00:00
Kp
ea0b0137f9
Pass canvas to gr_ubitmap012m
2016-12-29 03:27:12 +00:00
Kp
aba8f163e6
Pass canvas to gr_ubitmap012
2016-12-29 03:27:12 +00:00
Kp
ba70ec2142
Pass canvas to gr_for_each_bitmap_byte
2016-12-29 03:27:12 +00:00
Kp
d1f1633f45
Pass canvas to gr_ubitmapGENERIC
2016-12-29 03:27:11 +00:00
Kp
7e62a5670e
Pass canvas to gr_box12
2016-12-29 03:27:11 +00:00
Kp
14961b52fe
Pass canvas to gr_ubox12
2016-12-29 03:27:11 +00:00
Kp
1e1272fcf2
Cache temporaries in show_briefing_bitmap
...
Avoid recomputing the same width/height expressions. This saves ~20
instructions and ~100 bytes on x86_64-pc-linux-gnu.
2016-12-29 03:27:11 +00:00
Kp
9f6c54e29a
Pass unsigned x/y to gr_gpixel
2016-12-29 03:27:11 +00:00
Kp
f4752eabb3
Pass canvas to gr_for_each_bitmap_byte callback
2016-12-29 03:27:11 +00:00
Kp
ba78153f13
Pass canvas to gr_ubitmap00m
2016-12-29 03:27:11 +00:00
Kp
eb5419b934
Unify gr_ubitmap00{,m}
2016-12-29 03:27:10 +00:00
Kp
feb0baf040
Pass canvas to gr_ubitmap00
2016-12-29 03:27:10 +00:00
Kp
1fa5aef9ac
Pass canvas to gr_line
2016-12-29 03:27:10 +00:00
Kp
7439949595
Pass canvas to gr_uline
2016-12-29 03:27:10 +00:00
Kp
27a033d634
Pass canvas to gr_box0
2016-12-29 03:27:10 +00:00
Kp
dc4a75ca41
Pass canvas to gr_ubox0
2016-12-29 03:27:10 +00:00
Kp
fab08ec636
Pass canvas to gr_universal_uline
2016-12-29 03:27:10 +00:00
Kp
fc7bfac31b
Pass canvas to 2d/line.cpp plot
2016-12-29 03:27:09 +00:00
Kp
962912e08a
Pass canvas to gr_hline
2016-12-29 03:27:09 +00:00
Kp
d43426a0f7
Pass canvas to gr_vline
2016-12-29 03:27:09 +00:00
Kp
ef06aa089a
Pass canvas to gr_pixel
2016-12-29 03:27:09 +00:00
Kp
7e4d07490d
Pass canvas to gr_upixel
2016-12-29 03:27:09 +00:00
Kp
1ed06c91b7
Pass canvas to ogl_ulinec
2016-12-29 03:27:09 +00:00
Kp
fee4346dc1
Pass canvas to ogl_urect
2016-12-29 03:27:08 +00:00
Kp
bc66f5ce9b
Pass canvas to gr_scanline
2016-12-29 03:27:08 +00:00
Kp
e63593edc4
Pass canvas to gr_uscanline
2016-12-29 03:27:08 +00:00
Kp
290cb6e7c0
Use array<> for ogl_urect float arrays
2016-12-29 03:27:08 +00:00
Kp
29c912d2da
Fid -Wold-style-cast warning in SDL-only code
2016-12-29 03:27:08 +00:00
zico
a10d9e0bba
Prevent access of potentially uninitialized r.value in nm_trigger_radio_button()
2016-12-28 20:36:00 +01:00
zico
3672bbd1f2
Made show_briefing_bitmap() properly consider HIRESMODE (i.e. Mac data), using scaling logic from show_animated_bitmap().
2016-12-28 16:28:08 +01:00
zico
03f5cbf3a4
Fixed issue in frame_animation_angle(): Due to deltaang.*a being usually small values and frametime getting smaller with higher FPS, the usual use of fixmul will have scaled_delta_angle result in 0 way too often and long, making the robot animation run circles around itself. So multiply deltaang by DELTA_ANG_SCALE when passed to fixmul.
2016-12-28 15:26:33 +01:00
Kp
879070f814
Fix uninitialized value usage during init_player_stats_new_ship
...
init_player_stats_new_ship used select_primary_weapon and
select_secondary_weapon to assign the player's weapons. However, those
functions read the current weapon and jumped according to its value. A
new ship has no defined value for current weapons, so the jump triggered
an uninitialized value warning from Valgrind.
Add new functions set_primary_weapon, set_secondary_weapon that work
like the previous select_* functions, but always take the path used
for weapons not equal, without checking. This prevents the warnings
from Valgrind, as well as a theoretical risk of initializing the ship
improperly.
2016-12-25 00:33:25 +00:00
Kp
fed011df94
Exclude OBJ_NONE objects from can_collide flags test
2016-12-25 00:33:24 +00:00
Kp
5d752e741d
Factor out object_create_explosion_sub collision test
...
An 11-line if() test is unreadable. Split it out into a helper.
2016-12-25 00:33:24 +00:00
Kp
b05325d0ab
Initialize lavafall_hiss_playing for each ship
2016-12-25 00:33:24 +00:00
Kp
fa1f8488f0
Use uint8_t for sidenum
2016-12-24 22:44:08 +00:00