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

This commit is contained in:
truelight
2005-02-06 10:24:57 +00:00
parent e9c93f9c0c
commit 020c1e9b6c
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 */