From 1e86577fc8f41c006f19472b2ee5d0c688c6a137 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Wed, 13 Jan 2021 18:44:54 +0100 Subject: [PATCH] Some random cleanups --- Source/items.cpp | 2 +- Source/monster.cpp | 2 +- Source/player.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/items.cpp b/Source/items.cpp index e8b12287b..03b1f27d4 100644 --- a/Source/items.cpp +++ b/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]; diff --git a/Source/monster.cpp b/Source/monster.cpp index 34a8f9c4c..5a87c474f 100644 --- a/Source/monster.cpp +++ b/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 { diff --git a/Source/player.cpp b/Source/player.cpp index 142960b86..91b2e3f6f 100644 --- a/Source/player.cpp +++ b/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; }