(svn r11749) -Fix (r11352): when a bankrupted company is bought, reset vehicle color mapping so the vehicles use the new owner color

This commit is contained in:
glx
2008-01-03 23:50:58 +00:00
parent aebcd80088
commit 42bddcf723
7 changed files with 56 additions and 28 deletions

View File

@@ -402,6 +402,7 @@ void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player)
}
} else {
v->owner = new_player;
v->colormap = PAL_NONE;
v->group_id = DEFAULT_GROUP;
if (IsEngineCountable(v)) GetPlayer(new_player)->num_engines[v->engine_type]++;
switch (v->type) {