Fix pop consuming
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user