(svn r1818) -Add: Dynamic orders (up to 64k orders)

This commit is contained in:
truelight
2005-02-06 10:24:57 +00:00
parent bd7f37d592
commit 79d1ed2c66
7 changed files with 74 additions and 31 deletions

View File

@@ -803,6 +803,9 @@ static void FixOrder(uint16 *o, int num)
int i;
for (i = 0; i < num; ++i) {
if (!AddBlockIfNeeded(&_order_pool, i))
error("Orders: failed loading savegame: too many orders");
order = GetOrder(i);
AssignOrder(order, UnpackOldOrder(*o));
/* Recover the next list */