]> git.pond.sub.org Git - empserver/commit
Fix generation numbers for order command
authorMarkus Armbruster <armbru@pond.sub.org>
Tue, 26 Jan 2010 21:20:16 +0000 (22:20 +0100)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 26 Jan 2010 21:20:16 +0000 (22:20 +0100)
commit2b14f876be0ba99e8f8165ac4e32fa4075302c1b
tree70e056ad63390bb6a5d9568ebf6ea8ccdd1c6e27
parentb54bc83e260ac00da43dd41a028e85e04244e6b2
Fix generation numbers for order command

orde() uses a "clever" trick to get away with just one
check_ship_ok(): it makes a copy of the ship in the beginning, and
checks it at the end.  Generation numbers (commit 2fa5f652) break this
trick.  It could be fixed by manually marking the ship fresh.
Instead, check the ship the stupid, straightforward way, without a
copy.
src/lib/commands/orde.c