- Fixed: The speed definition of PowerSpeed used PROP_SpeedFixed instead of
PROP_SpeedLong. - Fixed: The Chainsaw's kickback was initialized to the default - not 0. SVN r535 (trunk)
This commit is contained in:
parent
87383a32c6
commit
2345a1a5f0
7 changed files with 2266 additions and 2230 deletions
|
|
@ -428,6 +428,22 @@ void SC_MustGetAnyToken (void)
|
|||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// SC_TokenMustBe
|
||||
//
|
||||
//==========================================================================
|
||||
|
||||
void SC_TokenMustBe (int token)
|
||||
{
|
||||
if (sc_TokenType != token)
|
||||
{
|
||||
FString tok1 = SC_TokenName(token);
|
||||
FString tok2 = SC_TokenName(sc_TokenType, sc_String);
|
||||
SC_ScriptError ("Expected %s but got %s instead.", tok1.GetChars(), tok2.GetChars());
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
//
|
||||
// SC_MustGetToken
|
||||
|
|
@ -437,12 +453,7 @@ void SC_MustGetAnyToken (void)
|
|||
void SC_MustGetToken (int token)
|
||||
{
|
||||
SC_MustGetAnyToken ();
|
||||
if (sc_TokenType != token)
|
||||
{
|
||||
FString tok1 = SC_TokenName(token);
|
||||
FString tok2 = SC_TokenName(sc_TokenType, sc_String);
|
||||
SC_ScriptError ("Expected %s but got %s instead.", tok1.GetChars(), tok2.GetChars());
|
||||
}
|
||||
SC_TokenMustBe(token);
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue