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
Kp
1eaaff3016
Move Difficulty_level to GameUniqueState
2019-06-27 03:26:20 +00:00
Kp
cfb481c74a
Add experimental support for guidebot in multiplayer
...
This was requested by a user in early 2018. However, the proposed
prototype was susceptible to various forms of desynchronization, and was
unsuitable for merging. No further revisions were proposed, and the
feature languished. This commit enables the guidebot in cooperative
games and addresses the known synchronization problems, as well as some
other bugs that were uncovered during light testing. This is classified
as an experimental feature because it has not been heavily tested in
complicated games.
Requested-by: cfeuersaenger <https://github.com/dxx-rebirth/dxx-rebirth/issues/364 >
2019-06-27 03:26:20 +00:00
Kp
bea95ce1df
Reset definedness of per-game globals on new game
2019-06-27 03:26:20 +00:00