Christian Beckhäuser
38fabd7c49
Fixed two issues with game's transparency effects feature (which I introduced when implementing it): First, Superprox mines dropped by enemies were made undesirably transparent since they have their own ID not considered by is_proximity_bomb_or_smart_mine(). Second, only some force field textures in D2X had transparency effects since the game has two different textures for force fields - eclip num 78 and 93 - but only the former was defined and used in is_alphablend_eclip()
2019-08-08 11:57:52 +02:00
Kp
334da8e8e6
Move some SDL-only symbols into !DXX_USE_OGL
2019-08-06 02:59:41 +00:00
Kp
f0faac66d4
Move Seismic_tremor_magnitude to d_level_unique_seismic_state
2019-08-06 02:59:41 +00:00
Kp
4b0f797d7e
Move Secret_return_orient to d_level_shared_segment_state
2019-08-06 02:59:41 +00:00
Kp
ad16d90dd5
Move Secret_return_segment to d_level_shared_segment_state
2019-08-06 02:59:41 +00:00
Kp
625d863c55
Move Smega_detonate_times to d_level_unique_seismic_state::Earthshaker_detonate_times
2019-08-06 02:59:41 +00:00
Kp
140711cb35
Move Next_seismic_sound_time to d_level_unique_seismic_state
2019-08-06 02:59:41 +00:00
Kp
8fd231e501
Move Seismic_tremor_volume to d_level_unique_seismic_state
2019-08-06 02:59:41 +00:00
Kp
42778ff7fa
Move Level_shake_duration to d_level_shared_seismic_state
2019-08-06 02:59:41 +00:00
Kp
b8fa75c8cb
Move Level_shake_frequency to d_level_shared_seismic_state
2019-08-06 02:59:41 +00:00
Kp
184337e6e1
Move Seismic_disturbance_end_time to d_level_unique_seismic_state
2019-08-06 02:59:40 +00:00
Kp
ef0e64d421
Move awareness events to d_level_unique_robot_awareness_state
2019-08-06 02:59:40 +00:00
Kp
03214c0e6f
Fix original game bug that meant to reset camera flag, but did not
2019-08-06 02:59:40 +00:00
Kp
215252b8ca
Fold Final_boss_is_dead into Final_boss_countdown_time
2019-08-06 02:59:40 +00:00
Kp
5455a65d33
Move Final_boss_countdown_time to d_game_unique_state
2019-08-06 02:59:40 +00:00
Kp
3d8c02fefa
Move Final_boss_is_dead to d_game_unique_state
2019-08-06 02:59:40 +00:00
Kp
7d803cf63e
Move some save/restore functions to dcx/dsx as appropriate
2019-08-06 02:59:40 +00:00
Kp
be84013494
Move Boss_hit_time to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
0a74eb6989
Move Boss_hit_this_frame to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
75440153a0
Move Boss_dying_sound_playing to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
a0c242c46f
Move Boss_dying_start_time to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
63d869fa0c
Move Boss_dying to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
4ec96337b6
Move Last_teleport_time to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
69404ebc6e
Move Boss_cloak_start_time to d_level_unique_boss_state
2019-08-06 02:59:40 +00:00
Kp
184be218b7
Emulate D1 bosses more accurately
...
Use D1 timing for gating, cloaking, and teleporting
2019-08-06 02:59:40 +00:00
Kp
49fd1f358e
Eliminate unnecessary Gamesave_current_filename
...
It is only read in contexts where the initializing filename is still
available, so pass the filename down instead of copying it to a global.
2019-08-06 02:59:40 +00:00
Kp
de77d2412b
Move Automap_visited to d_level_unique_automap_state
2019-08-06 02:59:40 +00:00
Kp
635ae0b595
Use typedef for savegame description
2019-07-28 21:09:07 +00:00
Kp
f43141f738
Use typedef for savegame file path
2019-07-28 21:09:07 +00:00
Kp
65555b6eba
Require only object_base for object_to_object_visibility
2019-07-27 17:48:03 +00:00
Kp
dd8cfa763f
Expand gcc memcpy workaround
...
Add link to upstream bug report.
2019-07-22 00:51:01 +00:00
Kp
347d1ba05f
Shrink struct vclip
...
`flags` only needs to be 1 bit wide, so switch from `int` to `uint8_t`.
Shrinking to a single bit would not save more space, but would
complicate the code.
2019-07-20 18:24:24 +00:00
Kp
41f4e84261
Move Stolen_item_index into d_thief_unique_state
2019-07-16 04:00:50 +00:00
Kp
a2560cdfb5
Move Stolen_items into d_thief_unique_state
2019-07-16 04:00:50 +00:00
Kp
91bb7e533c
Move player::hostages_total to d_game_unique_state
...
The number of hostages in a game is a function of the the game's levels,
not any particular player. Move it to d_game_unique_state and rename it
to total_hostages.
2019-07-16 04:00:50 +00:00
Kp
8f475021ca
Move player::hostages_level to d_level_unique_object_state
...
The number of hostages on a level is a function of the level, not any
particular player. Move it to d_level_unique_object_state and rename it
to total_hostages.
2019-07-16 04:00:50 +00:00
Kp
2ca2de6ee7
Move player::num_robots_total to d_game_unique_state
...
The number of robots accumulated in a game is a function of the the
game's levels, not any particular player. Move it to
d_game_unique_state and rename it to accumulated_robots.
2019-07-16 04:00:50 +00:00
Kp
a24de0c003
Move player::num_robots_level to d_level_unique_object_state
...
The number of robots accumulated on a level is a function of the level,
not any particular player. Move it to d_level_unique_object_state and
rename it to accumulated_robots.
2019-07-16 04:00:50 +00:00
Kp
e33aaa7537
Make init_player_stats_level static
2019-07-16 04:00:50 +00:00
Kp
c61dee7e6a
Move Boss_teleport_interval to d_level_shared_boss_state
2019-07-13 22:28:57 +00:00
Kp
595c3ca086
Move Boss_cloak_interval to d_level_shared_boss_state
2019-07-13 22:28:57 +00:00
Kp
b47f84ffd4
Move Gate_interval to d_game_unique_state
2019-07-13 22:28:57 +00:00
Kp
9df482a423
Move Last_gate_time to d_level_unique_boss_state
2019-07-13 22:28:57 +00:00
Kp
867223556c
Fix fallthrough warning in ntmap.cpp [SDL only]
2019-07-07 22:00:02 +00:00
Kp
8d349dd0c1
Include pilot name in window caption
2019-07-07 22:00:02 +00:00
Kp
0c7de10512
Track chosen pilot name outside Players[]
...
Players need not be defined outside a game, but the pilot's name needs
to be available outside a game. Therefore, track it outside Players[].
2019-07-07 22:00:02 +00:00
Kp
bfeca84bb8
Change object::signature to be a generation counter
...
This removes the need to walk all objects when creating a new one, since
each object can have a private generation counter, unaware of other
objects. For compatibility with demos, mix in the object's index when
writing the signature value.
2019-07-07 22:00:02 +00:00
Kp
efc071e830
Make init_player_stats_ship static
2019-07-07 22:00:02 +00:00
Kp
597cb41717
Downgrade PCX failures from Error to CON_URGENT
...
There is no need to kill the program due to a missing or malformed PCX file.
2019-07-07 22:00:02 +00:00
Kp
e2692d26ab
Clear grs_main_bitmap before initializing
...
No code path has been observed causing a leak by reinitializing without
resetting, but add an explicit reset to prevent future mistakes.
2019-07-07 22:00:02 +00:00