- added a setinv cheat CCMD.

This commit is contained in:
Christoph Oelckers 2017-03-14 11:44:21 +01:00
commit f70d0a6ced
10 changed files with 131 additions and 60 deletions

View file

@ -2207,6 +2207,12 @@ void Net_DoCommand (int type, uint8_t **stream, int player)
cht_Take (&players[player], s, ReadLong (stream));
break;
case DEM_SETINV:
s = ReadString(stream);
i = ReadLong(stream);
cht_SetInv(&players[player], s, i, ReadByte(stream));
break;
case DEM_WARPCHEAT:
{
int x, y, z;
@ -2727,6 +2733,10 @@ void Net_SkipCommand (int type, uint8_t **stream)
skip = strlen ((char *)(*stream)) + 5;
break;
case DEM_SETINV:
skip = strlen((char *)(*stream)) + 6;
break;
case DEM_NETEVENT:
skip = strlen((char *)(*stream)) + 15;
break;