mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
- allow 'sw...' cheats from the chat in Shadow Warrior.
This commit is contained in:
parent
40cb2116e0
commit
427e41d388
1 changed files with 10 additions and 0 deletions
|
@ -153,6 +153,16 @@ bool PlaybackCheat(const char *p)
|
|||
{
|
||||
event_t ev = { EV_KeyDown, 0, 0, -1 };
|
||||
Cheat_Responder(&ev); // Reset the parser by passing a non-existent key.
|
||||
|
||||
// little hack to allow 'sw...' cheats from the chat display in SW.
|
||||
if ((g_gameType & GAMEFLAG_SW) && tolower(*p) == 's')
|
||||
{
|
||||
ev.data2 = 'l';
|
||||
int result = Cheat_Responder(&ev);
|
||||
p++;
|
||||
}
|
||||
|
||||
|
||||
for (; *p; p++)
|
||||
{
|
||||
// just play the cheat command through the event parser
|
||||
|
|
Loading…
Reference in a new issue