@@ -171,28 +171,27 @@ void DrawPlayerFace(uint32 face, int col
DrawSprite(0x347 + val, x, y);
}
} else {
if (val<=1) {
DrawSprite(0x3AE + val, x, y);
void InvalidatePlayerWindows(Player *p)
{
uint pid = p->index;
if ( (byte)pid == _local_player)
InvalidateWindow(WC_STATUS_BAR, 0);
PlayerID pid = p->index;
if (pid == _local_player) InvalidateWindow(WC_STATUS_BAR, 0);
InvalidateWindow(WC_FINANCES, pid);
bool CheckPlayerHasMoney(int32 cost)
if (cost > 0) {
uint pid = _current_player;
if (pid < MAX_PLAYERS && cost > GetPlayer(pid)->player_money) {
SetDParam(0, cost);
_error_message = STR_0003_NOT_ENOUGH_CASH_REQUIRES;
return false;