diff --git a/src/land.c b/src/land.c index dd7692e..479d47e 100644 --- a/src/land.c +++ b/src/land.c @@ -210,6 +210,7 @@ static void commodity_buy(unsigned int wid, char* str) { q = pilot_addCargo(player, com, q); player->credits -= q * com->medium; + land_checkAddRefuel(); commodity_update(wid, NULL); } @@ -702,6 +703,7 @@ static void shipyard_buy(unsigned int wid, char* str) { } player->credits -= ship->price; /* Auch! Paying is hard! */ + land_checkAddRefuel(); shipyard_update(wid, NULL); } @@ -939,6 +941,7 @@ static void shipyard_yoursTransport(unsigned int wid, char* str) { /* Success. */ player->credits -= price; + land_checkAddRefuel(); player_setLoc(shipname, land_planet->name); /* Update the window to reflect the change. */