Fix navigate and march to find paths longer than 7 sectors again
Broken in commit 8f008bf8
, v4.3.27. How embarrassing...
This commit is contained in:
parent
80a2fdc8ff
commit
0faf0034e5
Notes:
Markus Armbruster
2011-07-12 09:51:28 +02:00
Longer than sizeof(char *) - 1, actually. 7 on 64 bit machines, 3 on 32 bit machines.
3 changed files with 7 additions and 7 deletions
|
@ -91,7 +91,7 @@ do_unit_move(struct emp_qelem *ulist, int *together,
|
|||
|
||||
if (player->argp[2]) {
|
||||
strcpy(buf, player->argp[2]);
|
||||
cp = unit_path(*together, leader, buf);
|
||||
cp = unit_path(*together, leader, buf, sizeof(buf));
|
||||
}
|
||||
|
||||
*pt = '\0';
|
||||
|
@ -151,7 +151,7 @@ do_unit_move(struct emp_qelem *ulist, int *together,
|
|||
continue;
|
||||
}
|
||||
if (cp)
|
||||
cp = unit_path(*together, leader, cp);
|
||||
cp = unit_path(*together, leader, buf, sizeof(buf));
|
||||
}
|
||||
if (type == EF_SHIP) {
|
||||
rad_map_set(player->cnum, leader->x, leader->y, leader->effic,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue