- Fixed: Tne Imp's raise state sequence was wrong due to a typo.

- Fixed: The shotgun had spawn ID 21 instead of 27.
- Fixed: All 3 states in the DoomUnusedStates actor need to end with a 'stop'.
- Fixed: The DECORATE TakeInventory functions didn't check the IF_KEEPDEPLETED
  flag.
- Fixed: ClearInventory should leave ammo in the inventory because it might be
  referenced by undroppable weapons.
- Fixed: Several functions in a_artifacts.cpp were missing a check for a valid
  owner.
- Fixed: sc_man counted lines wrong when ungetting strings but getting tokens
  next.



SVN r552 (trunk)
This commit is contained in:
Christoph Oelckers 2007-10-05 08:04:38 +00:00
commit 90db40c70f
8 changed files with 59 additions and 9 deletions

View file

@ -73,8 +73,10 @@ static char StringBuffer[MAX_STRING_SIZE];
static bool ScriptOpen = false;
static int ScriptSize;
static bool AlreadyGot = false;
static int AlreadyGotLine;
static bool LastGotToken = false;
static char *LastGotPtr;
static int LastGotLine;
static bool FreeScript = false;
static char *SavedScriptPtr;
static int SavedScriptLine;
@ -180,6 +182,7 @@ static void SC_PrepareScript (void)
AlreadyGot = false;
LastGotToken = false;
LastGotPtr = NULL;
LastGotLine = 1;
SavedScriptPtr = NULL;
CMode = false;
Escape = true;
@ -299,6 +302,7 @@ static bool SC_ScanString (bool tokens)
return true;
}
ScriptPtr = LastGotPtr;
sc_Line = LastGotLine;
}
sc_Crossed = false;
@ -309,6 +313,7 @@ static bool SC_ScanString (bool tokens)
}
LastGotPtr = ScriptPtr;
LastGotLine = sc_Line;
// In case the generated scanner does not use marker, avoid compiler warnings.
marker;
@ -644,6 +649,7 @@ void SC_MustGetFloat (void)
void SC_UnGet (void)
{
AlreadyGot = true;
AlreadyGotLine = LastGotLine; // in case of an error we want the line of the last token.
}
//==========================================================================
@ -912,7 +918,7 @@ void STACK_ARGS SC_ScriptError (const char *message, ...)
}
I_Error ("Script error, \"%s\" line %d:\n%s\n", ScriptName.GetChars(),
sc_Line, composed.GetChars());
AlreadyGot? AlreadyGotLine : sc_Line, composed.GetChars());
}
//==========================================================================