version 1.102 | | version 1.103 |
---|
| | |
/* | | /* |
* static char *rcsid_main_c = | | * static char *rcsid_main_c = |
* "$Id: main.c,v 1.102 2005/10/28 19:08:53 akirschbaum Exp $"; | | * "$Id: main.c,v 1.103 2005/11/05 14:02:31 akirschbaum Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
if (i==-1) { | | if (i==-1) { |
i = find_free_spot(op->arch,newmap, x, y, 1, SIZEOFFREE2+1); | | i = find_free_spot(op->arch,newmap, x, y, 1, SIZEOFFREE2+1); |
if (i==-1) | | if (i==-1) |
i = find_free_spot(op->arch,newmap, x, y, 1, SIZEOFFREE+1); | | i = find_free_spot(op->arch,newmap, x, y, 1, SIZEOFFREE); |
} | | } |
if (i != -1 ) { | | if (i != -1 ) { |
x += freearr_x[i]; | | x += freearr_x[i]; |
| | |
/* Update any golems */ | | /* Update any golems */ |
if(op->type == PLAYER && op->contr->ranges[range_golem] != NULL) { | | if(op->type == PLAYER && op->contr->ranges[range_golem] != NULL) { |
int i = find_free_spot(op->contr->ranges[range_golem]->arch,newmap, | | int i = find_free_spot(op->contr->ranges[range_golem]->arch,newmap, |
x, y, 1, SIZEOFFREE+1); | | x, y, 1, SIZEOFFREE); |
| | |
remove_ob(op->contr->ranges[range_golem]); | | remove_ob(op->contr->ranges[range_golem]); |
if (i==-1) { | | if (i==-1) { |