dxx-rebirth/d2x-rebirth/main
Kp 9c330da29f Prevent guidebot crash on unattainable goal
Yarn reported that Descent 2: Counterstrike level 9 can place the
guidebot in a situation where

    (Escort_goal_index == object_guidebot_cannot_reach &&
    Escort_special_goal != ESCORT_GOAL_UNSPECIFIED)

If this happens and the player grabs a powerup, then the game crashes
trying to check if the grabbed powerup was of the type that the guidebot
sought.  Since the guidebot was not seeking any object, the answer is
that this is not the sought object.

The design ought not set Escort_goal_index to an invalid object index,
but it does.  Fixing that is too invasive for now.  Add a special case
to prevent this crash.

Reported-by: Yarn <http://www.dxx-rebirth.com/frm/index.php/topic,2158.0.html>
2017-01-29 18:54:52 +00:00
..
bmread.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
descent.cfg Changed custom D1X license to GPLv3 2014-06-01 19:55:23 +02:00
escort.cpp Prevent guidebot crash on unattainable goal 2017-01-29 18:54:52 +00:00
gamepal.cpp Move EDITOR to dxxsconf.h; rename to DXX_USE_EDITOR 2016-09-11 18:49:16 +00:00
inferno.ini
libmve.h Fix check_header_includes build 2015-07-25 23:10:45 +00:00
movie.cpp Make grs_bitmap::bm_flags private 2017-01-15 00:03:13 +00:00
movie.h Move OGL to dxxsconf.h; rename to DXX_USE_OGL 2016-09-24 18:06:11 +00:00
physfsrwops.h Move d2x-rebirth/include/* -> d2x-rebirth/main/ 2015-06-13 22:42:21 +00:00