Fix pop consuming

This commit is contained in:
2024-02-07 12:00:02 +01:00
parent c625f566bc
commit e41837001e
5 changed files with 14 additions and 14 deletions

View File

@@ -207,6 +207,7 @@ void drawGameUI(Game *game, f32 dt) {
if (selected) {
i32 res[RES_COUNT] = {0,};
getEntityCost(slot->entityType, res);
playerRes->pop++;
playerRes->food -= res[RES_FOOD];
playerRes->wood -= res[RES_WOOD];
playerRes->gold -= res[RES_GOLD];