- Update to latest version in trunk.
SVN r3890 (scripting)
This commit is contained in:
commit
e7efa1d802
117 changed files with 2260 additions and 787 deletions
|
|
@ -56,6 +56,7 @@
|
|||
#include "colormatcher.h"
|
||||
#include "thingdef_exp.h"
|
||||
#include "version.h"
|
||||
#include "templates.h"
|
||||
|
||||
TDeletingArray<FStateTempCall *> StateTempCalls;
|
||||
|
||||
|
|
@ -223,12 +224,34 @@ do_stop:
|
|||
sc.MustGetString();
|
||||
statestring = sc.String;
|
||||
|
||||
sc.MustGetNumber();
|
||||
state.Tics = clamp<int>(sc.Number, -1, 32767);
|
||||
if (tcall == NULL)
|
||||
{
|
||||
tcall = new FStateTempCall;
|
||||
}
|
||||
if (sc.CheckString("RANDOM"))
|
||||
{
|
||||
int min, max;
|
||||
|
||||
sc.MustGetStringName("(");
|
||||
sc.MustGetNumber();
|
||||
min = clamp<int>(sc.Number, -1, SHRT_MAX);
|
||||
sc.MustGetStringName(",");
|
||||
sc.MustGetNumber();
|
||||
max = clamp<int>(sc.Number, -1, SHRT_MAX);
|
||||
sc.MustGetStringName(")");
|
||||
if (min > max)
|
||||
{
|
||||
swapvalues(min, max);
|
||||
}
|
||||
state.Tics = min;
|
||||
state.TicRange = max - min;
|
||||
}
|
||||
else
|
||||
{
|
||||
sc.MustGetNumber();
|
||||
state.Tics = clamp<int>(sc.Number, -1, SHRT_MAX);
|
||||
state.TicRange = 0;
|
||||
}
|
||||
|
||||
while (sc.GetString() && !sc.Crossed)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue