Merge branch 'master' of github.com:diasurgical/devilution into hellfire
This commit is contained in:
commit
b040c04a18
142 changed files with 3350 additions and 2236 deletions
|
|
@ -1,4 +1,9 @@
|
|||
#include "diablo.h"
|
||||
/**
|
||||
* @file debug.cpp
|
||||
*
|
||||
* Implementation of debug functions.
|
||||
*/
|
||||
#include "all.h"
|
||||
|
||||
#ifdef _DEBUG
|
||||
BOOL update_seed_check = FALSE;
|
||||
|
|
@ -118,12 +123,12 @@ void StoresCheat()
|
|||
numpremium = 0;
|
||||
|
||||
for (i = 0; i < SMITH_PREMIUM_ITEMS; i++)
|
||||
premiumitem[i]._itype = -1;
|
||||
premiumitem[i]._itype = ITYPE_NONE;
|
||||
|
||||
SpawnPremium(30);
|
||||
|
||||
for (i = 0; i < 20; i++)
|
||||
witchitem[i]._itype = -1;
|
||||
witchitem[i]._itype = ITYPE_NONE;
|
||||
|
||||
SpawnWitch(30);
|
||||
#endif
|
||||
|
|
@ -142,7 +147,7 @@ void TakeGoldCheat()
|
|||
|
||||
for (i = 0; i < MAXBELTITEMS; i++) {
|
||||
if (plr[myplr].SpdList[i]._itype == ITYPE_GOLD)
|
||||
plr[myplr].SpdList[i]._itype = -1;
|
||||
plr[myplr].SpdList[i]._itype = ITYPE_NONE;
|
||||
}
|
||||
|
||||
plr[myplr]._pGold = 0;
|
||||
|
|
@ -243,11 +248,11 @@ void PrintDebugMonster(int m)
|
|||
sprintf(dstr, "Mode = %i, Var1 = %i", monster[m]._mmode, monster[m]._mVar1);
|
||||
NetSendCmdString(1 << myplr, dstr);
|
||||
|
||||
bActive = 0;
|
||||
bActive = FALSE;
|
||||
|
||||
for (i = 0; i < nummonsters; i++) {
|
||||
if (monstactive[i] == m)
|
||||
bActive = 1;
|
||||
bActive = TRUE;
|
||||
}
|
||||
|
||||
sprintf(dstr, "Active List = %i, Squelch = %i", bActive, monster[m]._msquelch);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue