- Added support for automatically loading ACS objects (even for Doom-format

maps). To use it, compile the ACS files as ordinary libraries placed
  between A_START/A_END markers. Then outside the markers, create a lump
  called LOADACS. This is just a plain text lump that lists all the libraries
  you want to autoload with every map. You can do this with as many libraries
  as you want, and LOADACS lumps are also cummulative.

SVN r123 (trunk)
This commit is contained in:
Randy Heit 2006-05-17 01:38:07 +00:00
commit c770d4a99a
6 changed files with 50 additions and 23 deletions

View file

@ -3471,16 +3471,13 @@ void P_SpawnPlayer (mapthing2_t *mthing)
P_PlayerStartStomp (mobj);
// [BC] Do script stuff
if (level.behavior != NULL)
if (state == PST_ENTER || (state == PST_LIVE && !savegamerestore))
{
if (state == PST_ENTER || (state == PST_LIVE && !savegamerestore))
{
FBehavior::StaticStartTypedScripts (SCRIPT_Enter, p->mo, true);
}
else if (state == PST_REBORN)
{
FBehavior::StaticStartTypedScripts (SCRIPT_Respawn, p->mo, true);
}
FBehavior::StaticStartTypedScripts (SCRIPT_Enter, p->mo, true);
}
else if (state == PST_REBORN)
{
FBehavior::StaticStartTypedScripts (SCRIPT_Respawn, p->mo, true);
}
}