Fix missing switch cases
This commit is contained in:
parent
a0009b0ff8
commit
4f791948ff
2 changed files with 7 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue