mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-27 01:10:51 +00:00
Fix cheats giving inventory items and their events.
git-svn-id: https://svn.eduke32.com/eduke32@2670 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
f5fb70250a
commit
b40ec07d36
1 changed files with 3 additions and 5 deletions
|
@ -7003,11 +7003,9 @@ enum cheatindex_t
|
||||||
|
|
||||||
static void doinvcheat(int32_t invidx, int32_t defaultnum, int32_t event)
|
static void doinvcheat(int32_t invidx, int32_t defaultnum, int32_t event)
|
||||||
{
|
{
|
||||||
if (VM_OnEvent(event, g_player[myconnectindex].ps->i, myconnectindex, -1, defaultnum) >= 0)
|
defaultnum = VM_OnEvent(event, g_player[myconnectindex].ps->i, myconnectindex, -1, defaultnum);
|
||||||
{
|
if (defaultnum >= 0)
|
||||||
g_player[myconnectindex].ps->inv_amount[invidx] =
|
g_player[myconnectindex].ps->inv_amount[invidx] = defaultnum;
|
||||||
aGameVars[g_iReturnVarID].val.lValue;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void G_CheatGetInv(void)
|
static void G_CheatGetInv(void)
|
||||||
|
|
Loading…
Reference in a new issue