(svn r2951) - Fix: [ 1259345 ] Changing engine in netgame opens train window for everyone

- Add IsLocalPlayer() which substitutes _local_player == _current_player
This commit is contained in:
Darkvater
2005-09-14 18:03:38 +00:00
parent 7cb1b719cf
commit c0c75ef16e
12 changed files with 26 additions and 28 deletions

View File

@@ -1472,8 +1472,7 @@ int LoadUnloadVehicle(Vehicle *v)
v->profit_this_year += profit;
SubtractMoneyFromPlayer(-profit);
if (_current_player == _local_player)
SndPlayVehicleFx(SND_14_CASHTILL, v);
if (IsLocalPlayer()) SndPlayVehicleFx(SND_14_CASHTILL, v);
ShowCostOrIncomeAnimation(v->x_pos, v->y_pos, v->z_pos, -profit);
}