Browse Source

Fix missing switch cases

pull/2904/head
Anders Jenbo 5 years ago committed by qndel
parent
commit
4f791948ff
  1. 5
      Source/debug.cpp
  2. 2
      Source/items.cpp

5
Source/debug.cpp

@ -829,6 +829,11 @@ bool GetDebugGridText(Point dungeonCoords, char *debugGridTextBuffer)
case DebugGridTextItem::dSpecial:
info = dSpecial[dungeonCoords.x][dungeonCoords.y];
break;
case DebugGridTextItem::dObject:
info = dObject[dungeonCoords.x][dungeonCoords.y];
break;
case DebugGridTextItem::None:
return false;
}
if (info == 0)
return false;

2
Source/items.cpp

@ -4645,6 +4645,8 @@ void SpawnBoy(int lvl)
ivalue = mostValuablePlayerItem == nullptr ? 0 : mostValuablePlayerItem->_iIvalue;
break;
}
default:
app_fatal("Invalid item spawn");
}
ivalue = ivalue * 4 / 5; // avoids forced int > float > int conversion

Loading…
Cancel
Save