Add handling for +warp at the command line.

- Command-line console commands are executed before a level is entered, so
  trying to use +warp to position yourself at a specific location will not
  work. We now specially handle this command so that it does work.
This commit is contained in:
Randy Heit 2013-10-09 22:11:33 -05:00
commit 637798c1b5
3 changed files with 17 additions and 2 deletions

View file

@ -627,7 +627,14 @@ void C_DoCommand (const char *cmd, int keynum)
}
else
{
new DStoredCommand (com, beg);
if (len == 4 && strnicmp(beg, "warp", 4) == 0)
{
StoredWarp = beg;
}
else
{
new DStoredCommand (com, beg);
}
}
}
else