dxx-rebirth/similar/main
Kp b4e3d67725 Recompute guidebot index on game load
The index of the guidebot is set by loading the level data, and this is
usually sufficient.  However, if the user kills the guidebot, then uses
cheats to create a new one, the new guidebot will often have a different
index than the original guidebot.  If such a game is saved and then
reloaded, then after the reload, the computed guidebot index will be
reverted to the index of the original dead guidebot.  This causes
various problems, including potentially a crash.  Recompute the guidebot
index after loading the objects from the save file, so that it matches
the live guidebot.

Reported-by: GitInMotion <https://github.com/dxx-rebirth/dxx-rebirth/issues/713>
2023-05-14 18:41:36 +00:00
..
ai.cpp Move WID_* constants into wall_is_doorway_result 2023-02-18 14:30:59 +00:00
aipath.cpp Pass robot_info to move_towards_segment_center 2022-12-02 04:09:20 +00:00
automap.cpp Move Descent 2 specific automap colors to d2x 2023-04-23 21:45:31 +00:00
bm.cpp Use enum class for properties_init result 2023-01-07 22:17:31 +00:00
bmread.cpp Move bmread texture_count into local scope 2023-04-29 16:10:28 +00:00
cntrlcen.cpp Pass ranges::subrange to reactor_read_n 2022-12-31 16:21:47 +00:00
collide.cpp Use variable template for CollisionResult initialization 2023-01-29 20:42:03 +00:00
config.cpp Rework convert_integer to return result in some cases 2023-01-14 19:05:37 +00:00
console.cpp Reduce console colors to in-range values 2023-04-22 14:56:35 +00:00
controls.cpp
credits.cpp
digiobj.cpp Use enum class for wall_is_doorway_mask 2023-01-29 20:42:03 +00:00
dumpmine.cpp Remove macro wrapper around nm_messagebox 2023-01-14 19:05:37 +00:00
effects.cpp
endlevel.cpp Use enum class for polygon_model_index 2022-12-18 18:32:14 +00:00
fireball.cpp Use enum class for wall_is_doorway_mask 2023-01-29 20:42:03 +00:00
fuelcen.cpp Inline object_create_explosion into callers 2022-11-07 01:59:34 +00:00
fvi.cpp Move WID_* constants into wall_is_doorway_result 2023-02-18 14:30:59 +00:00
game.cpp Use enum class for sound_sample_rate 2023-01-07 22:17:31 +00:00
gamecntl.cpp Fix OS X clang build 2022-10-31 00:51:32 +00:00
gamefont.cpp
gamemine.cpp
gamerend.cpp Use enum class for bitmap_index 2022-12-31 16:21:47 +00:00
gamesave.cpp Remove macro wrapper around nm_messagebox 2023-01-14 19:05:37 +00:00
gameseg.cpp Move WID_* constants into wall_is_doorway_result 2023-02-18 14:30:59 +00:00
gameseq.cpp Use enum class for load_palette arguments 2023-04-15 19:11:14 +00:00
gauges.cpp Use enum class for bitmap_index 2022-12-31 16:21:47 +00:00
generate-kconfig-udlr.py Fix generate-kconfig-udlr.py for Python3 2022-11-13 21:17:23 +00:00
hostage.cpp
hud.cpp Fix various Win32 build failures due to ambiguous operator[]() 2022-10-23 23:00:24 +00:00
iff.cpp Remove unused argument to parse_bmhd 2023-02-26 18:42:12 +00:00
inferno.cpp Use enum class for descent_hog_size 2023-05-14 18:41:36 +00:00
kconfig.cpp
kconfig.ui-table.cpp
kmatrix.cpp
laser.cpp Add further comments around the laser damage penalty logic 2023-04-22 15:02:12 +00:00
lighting.cpp Use enum class for wall_is_doorway_mask 2023-01-29 20:42:03 +00:00
menu.cpp Use enum class for load_palette arguments 2023-04-15 19:11:14 +00:00
mglobal.cpp Move global constants from mglobal.cpp to cglobal.cpp 2023-03-12 10:40:25 +00:00
mission.cpp Use NSDMI for zero-initialized Mission members 2023-05-14 18:41:36 +00:00
morph.cpp Switch do_morph_frame to enumerate(zip()) 2023-01-07 22:17:31 +00:00
multi.cpp Fix Apple Clang errors and warnings 2023-04-06 16:42:49 -07:00
multibot.cpp Inline object_create_explosion into callers 2022-11-07 01:59:34 +00:00
net_udp.cpp Recompute guidebot index on game load 2023-05-14 18:41:36 +00:00
newdemo.cpp Remove macro wrapper around nm_messagebox 2023-01-14 19:05:37 +00:00
newmenu.cpp Pass menu_filename to nm_draw_background1 2023-04-15 19:11:14 +00:00
object.cpp Recompute guidebot index on game load 2023-05-14 18:41:36 +00:00
paging.cpp Move vclip id validation down into paging_touch_vclip 2023-01-14 19:05:37 +00:00
physics.cpp
piggy.cpp Harden D2 loading of D1 texture numbers 2023-01-07 22:17:31 +00:00
player.cpp Use enum class for polygon_model_index 2022-12-18 18:32:14 +00:00
playsave.cpp Rework convert_integer to return result in some cases 2023-01-14 19:05:37 +00:00
polyobj.cpp Use if constexpr to guard calls to align_polygon_model_data 2022-12-31 16:21:47 +00:00
powerup.cpp Detect escort goal even for silent powerups 2023-01-07 22:17:31 +00:00
render.cpp Move WID_* constants into wall_is_doorway_result 2023-02-18 14:30:59 +00:00
robot.cpp Return ranges::subrange from robot_get_anim_state 2022-12-31 16:21:47 +00:00
scores.cpp Remove macro wrapper around nm_messagebox 2023-01-14 19:05:37 +00:00
segment.cpp Use enum class for delta_light_index 2022-11-07 01:59:34 +00:00
slew.cpp
songs.cpp Fix various Win32 build failures due to ambiguous operator[]() 2022-10-23 23:00:24 +00:00
state.cpp Recompute guidebot index on game load 2023-05-14 18:41:36 +00:00
switch.cpp
terrain.cpp
texmerge.cpp Use enum class for bitmap_index 2022-12-31 16:21:47 +00:00
text.cpp
titles.cpp Use enum class for descent_hog_size 2023-05-14 18:41:36 +00:00
vclip.cpp
vers_id.cpp Fix buffer overread at startup 2022-10-19 01:17:33 +00:00
wall.cpp Move WID_* constants into wall_is_doorway_result 2023-02-18 14:30:59 +00:00
weapon.cpp Use enum class for bitmap_index 2022-12-31 16:21:47 +00:00