Browse Source

Some random cleanups

pull/977/head
Anders Jenbo 5 years ago
parent
commit
1e86577fc8
  1. 2
      Source/items.cpp
  2. 2
      Source/monster.cpp
  3. 2
      Source/player.cpp

2
Source/items.cpp

@ -3148,7 +3148,7 @@ void CreateTypeItem(int x, int y, BOOL onlygood, int itype, int imisc, BOOL send
idx = RndTypeItems(itype, imisc);
#endif
else
idx = 0;
idx = IDI_GOLD;
if (numitems < MAXITEMS) {
ii = itemavail[0];

2
Source/monster.cpp

@ -3414,7 +3414,7 @@ BOOL M_CallWalk2(int i, int md)
int mdtemp;
mdtemp = md;
ok = DirOK(i, md); // Can we continue in the same direction
ok = DirOK(i, md); // Can we continue in the same direction
if (random_(101, 2) != 0) { // Randomly go left or right
ok = ok || (mdtemp = left[md], DirOK(i, left[md])) || (mdtemp = right[md], DirOK(i, right[md]));
} else {

2
Source/player.cpp

@ -810,7 +810,7 @@ void CreatePlayer(int pnum, char c)
} else if (plr[pnum]._pClass == PC_ROGUE || plr[pnum]._pClass == PC_MONK || plr[pnum]._pClass == PC_BARD) {
#else
}
if (plr[pnum]._pClass == PC_ROGUE == PC_ROGUE) {
if (plr[pnum]._pClass == PC_ROGUE) {
#endif
plr[pnum]._pHitPoints += plr[pnum]._pHitPoints >> 1;
}

Loading…
Cancel
Save