mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- cheat list fixed.
This commit is contained in:
parent
7688390b2d
commit
2c494245ad
1 changed files with 3 additions and 2 deletions
|
@ -30,12 +30,12 @@
|
|||
#include "printf.h"
|
||||
#include "gamestruct.h"
|
||||
|
||||
static cheatseq_t *cheats;
|
||||
static cheatseq_t *cheatlist;
|
||||
static int numcheats;
|
||||
|
||||
void SetCheats(cheatseq_t *cht, int count)
|
||||
{
|
||||
cheats = cht;
|
||||
cheatlist = cht;
|
||||
numcheats = count;
|
||||
}
|
||||
|
||||
|
@ -99,6 +99,7 @@ bool Cheat_Responder (event_t *ev)
|
|||
{
|
||||
int i;
|
||||
|
||||
auto cheats = cheatlist;
|
||||
for (i = 0; i < numcheats; i++, cheats++)
|
||||
{
|
||||
if (CheatAddKey (cheats, (uint8_t)ev->data2, &eat))
|
||||
|
|
Loading…
Reference in a new issue