mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-22 03:42:41 +01:00
This commit is contained in:
@@ -912,7 +912,12 @@ CommandCost CmdBuildShip(DoCommandFlags flags, TileIndex tile, const Engine *e,
|
||||
v->y_pos = y;
|
||||
v->z_pos = GetSlopePixelZ(x, y);
|
||||
|
||||
v->direction = DiagDirToDir(GetShipDepotDirection(tile));
|
||||
|
||||
/* UpdateDeltaXY() requires rotation to be initialised as well. */
|
||||
v->rotation = v->direction;
|
||||
v->UpdateDeltaXY();
|
||||
|
||||
v->vehstatus = VS_HIDDEN | VS_STOPPED | VS_DEFPAL;
|
||||
|
||||
v->spritenum = svi->image_index;
|
||||
|
||||
Reference in New Issue
Block a user