Mercurial > hg > openttd
changeset 2813:d5bd9ee4e23c draft
(svn r3361) - Clone Vehicle: Disallow cloning of crashed rail vehicles after starting removal process.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Wed, 04 Jan 2006 16:53:00 +0000 |
parents | 9224178678c4 |
children | 768940415fab |
files | vehicle.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vehicle.c +++ b/vehicle.c @@ -1508,7 +1508,7 @@ if (!CheckOwnership(v->owner)) return CMD_ERROR; - if (v->type == VEH_Train && !IsFrontEngine(v)) return CMD_ERROR; + if (v->type == VEH_Train && (!IsFrontEngine(v) || v->u.rail.crash_anim_pos >= 4400)) return CMD_ERROR; // check that we can allocate enough vehicles if (!(flags & DC_EXEC)) {