Browse Source

added some more values from enums (#1955)

pull/556/head^2^2
Marco 6 years ago committed by Anders Jenbo
parent
commit
29b9c99e5a
  1. 2
      Source/control.cpp
  2. 2
      Source/cursor.cpp
  3. 2
      Source/items.cpp
  4. 10
      Source/items.h
  5. 2
      Source/missiles.cpp
  6. 2
      Source/monster.cpp
  7. 2
      Source/objects.cpp

2
Source/control.cpp

@ -561,7 +561,7 @@ void DrawSpellList()
void SetSpell()
{
spselflag = 0;
if (pSpell != -1) {
if (pSpell != SPL_INVALID) {
ClearPanel();
plr[myplr]._pRSpell = pSpell;
plr[myplr]._pRSplType = pSplType;

2
Source/cursor.cpp

@ -206,7 +206,7 @@ void CheckCursMove()
fx -= (plr[myplr]._pVar6 + plr[myplr]._pxvel) >> 8;
fy -= (plr[myplr]._pVar7 + plr[myplr]._pyvel) >> 8;
if (ScrollInfo._sdir != 0) {
if (ScrollInfo._sdir != SDIR_NONE) {
sx -= fx;
sy -= fy;
}

2
Source/items.cpp

@ -189,7 +189,7 @@ void InitItemGFX()
int i;
char arglist[64];
for (i = 0; i < 35; i++) {
for (i = 0; i < ITEMTYPES; i++) {
sprintf(arglist, "Items\\%s.CEL", ItemDropNames[i]);
itemanims[i] = LoadFileInMem(arglist, NULL);
}

10
Source/items.h

@ -9,7 +9,7 @@ extern ItemStruct curruitem;
extern ItemGetRecordStruct itemrecord[MAXITEMS];
extern ItemStruct item[MAXITEMS + 1];
extern BOOL itemhold[3][3];
extern BYTE *itemanims[35];
extern BYTE *itemanims[ITEMTYPES];
extern BOOL UniqueItemFlag[128];
extern int numitems;
extern int gnNumGetRecords;
@ -129,10 +129,10 @@ void PutItemRecord(int nSeed, WORD wCI, int nIndex);
/* data */
extern BYTE ItemCAnimTbl[169];
extern char *ItemDropNames[35];
extern BYTE ItemAnimLs[35];
extern int ItemDropSnds[35];
extern int ItemInvSnds[35];
extern char *ItemDropNames[ITEMTYPES];
extern BYTE ItemAnimLs[ITEMTYPES];
extern int ItemDropSnds[ITEMTYPES];
extern int ItemInvSnds[ITEMTYPES];
extern int idoppely;
extern int premiumlvladd[6];

2
Source/missiles.cpp

@ -962,7 +962,7 @@ void CheckMissileCol(int i, int mindam, int maxdam, BOOL shift, int mx, int my,
}
} else {
if (dMonster[mx][my] < 0
&& monster[-(dMonster[mx][my] + 1)]._mmode == 15
&& monster[-(dMonster[mx][my] + 1)]._mmode == MM_STONE
&& MonsterMHit(
missile[i]._misource,
-(dMonster[mx][my] + 1),

2
Source/monster.cpp

@ -4056,7 +4056,7 @@ void MAI_Rhino(int i)
Monst->_mgoalvar1 = 0;
Monst->_mgoalvar2 = random_(133, 2);
}
Monst->_mgoal = 4;
Monst->_mgoal = MGOAL_MOVE;
if (abs(mx) > abs(my)) {
dist = abs(mx);
} else {

2
Source/objects.cpp

@ -1063,7 +1063,7 @@ void AddFlameTrap(int i)
void AddFlameLvr(int i)
{
object[i]._oVar1 = trapid;
object[i]._oVar2 = 49;
object[i]._oVar2 = MIS_FLAMEC;
}
void AddTrap(int i, int ot)

Loading…
Cancel
Save