mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Add better error handling to app.event console command
This commit is contained in:
committed by
Darryl Pogue
parent
613b001678
commit
ff13a26e8a
@ -2144,8 +2144,18 @@ PF_CONSOLE_CMD( App,
|
|||||||
if( !stricmp(eventStr, "Time") )
|
if( !stricmp(eventStr, "Time") )
|
||||||
{
|
{
|
||||||
event = kTime;
|
event = kTime;
|
||||||
|
if (numParams < 2)
|
||||||
|
{
|
||||||
|
PrintString("'Time' expects a timestamp (in seconds)");
|
||||||
|
return;
|
||||||
|
}
|
||||||
secs = params[2];
|
secs = params[2];
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
PrintString("Unknown event type. Options are 'Start', 'Stop', and 'Time'");
|
||||||
|
return;
|
||||||
|
}
|
||||||
if( numParams > 3 )
|
if( numParams > 3 )
|
||||||
{
|
{
|
||||||
reps = params[3];
|
reps = params[3];
|
||||||
|
Reference in New Issue
Block a user