- Bugfix Mapper: atoi36-Verhalten war inkompatibel.

This commit is contained in:
Christian Schlittchen 2002-04-27 11:59:54 +00:00
parent 23825c9723
commit cf9112ad7c
2 changed files with 15 additions and 5 deletions

View File

@ -30,8 +30,8 @@
#define SKILLPOINTS 0
#define NEW_MIGRATION 1
#define PEASANTS_DO_NOT_STARVE 0
#define GUARD_DISABLES_RECRUIT 1
#define GUARD_DISABLES_PRODUCTION 1
#define GUARD_DISABLES_RECRUIT 0
#define GUARD_DISABLES_PRODUCTION 0
#define RESOURCE_QUANTITY 1.0
#define RECRUITFRACTION 5
#define CATAPULT_AMMUNITION 0 /* Gebaut werden kann sie auch mit 0! */

View File

@ -1480,10 +1480,20 @@ showunits(region * r)
refresh();
} else {
if ((s = strchr(pointer->s, '('))!=NULL) {
char idbuf[12];
int i = 0;
s++;
f = atoi36(s);
f2 = atoi36(s);
if (f || f2)
while(*s != ')') {
idbuf[i] = *s;
i++; s++;
assert(i<=11);
}
idbuf[i] = '\0';
f = atoi36(idbuf);
if (f)
switch (pointer->s[0]) {
case '\025':
clipunit = findunit(f, r);