forked from github/server
- Bugfix Mapper: atoi36-Verhalten war inkompatibel.
This commit is contained in:
parent
23825c9723
commit
cf9112ad7c
|
@ -30,8 +30,8 @@
|
||||||
#define SKILLPOINTS 0
|
#define SKILLPOINTS 0
|
||||||
#define NEW_MIGRATION 1
|
#define NEW_MIGRATION 1
|
||||||
#define PEASANTS_DO_NOT_STARVE 0
|
#define PEASANTS_DO_NOT_STARVE 0
|
||||||
#define GUARD_DISABLES_RECRUIT 1
|
#define GUARD_DISABLES_RECRUIT 0
|
||||||
#define GUARD_DISABLES_PRODUCTION 1
|
#define GUARD_DISABLES_PRODUCTION 0
|
||||||
#define RESOURCE_QUANTITY 1.0
|
#define RESOURCE_QUANTITY 1.0
|
||||||
#define RECRUITFRACTION 5
|
#define RECRUITFRACTION 5
|
||||||
#define CATAPULT_AMMUNITION 0 /* Gebaut werden kann sie auch mit 0! */
|
#define CATAPULT_AMMUNITION 0 /* Gebaut werden kann sie auch mit 0! */
|
||||||
|
|
|
@ -1480,10 +1480,20 @@ showunits(region * r)
|
||||||
refresh();
|
refresh();
|
||||||
} else {
|
} else {
|
||||||
if ((s = strchr(pointer->s, '('))!=NULL) {
|
if ((s = strchr(pointer->s, '('))!=NULL) {
|
||||||
|
char idbuf[12];
|
||||||
|
int i = 0;
|
||||||
|
|
||||||
s++;
|
s++;
|
||||||
f = atoi36(s);
|
while(*s != ')') {
|
||||||
f2 = atoi36(s);
|
idbuf[i] = *s;
|
||||||
if (f || f2)
|
i++; s++;
|
||||||
|
assert(i<=11);
|
||||||
|
}
|
||||||
|
idbuf[i] = '\0';
|
||||||
|
|
||||||
|
f = atoi36(idbuf);
|
||||||
|
|
||||||
|
if (f)
|
||||||
switch (pointer->s[0]) {
|
switch (pointer->s[0]) {
|
||||||
case '\025':
|
case '\025':
|
||||||
clipunit = findunit(f, r);
|
clipunit = findunit(f, r);
|
||||||
|
|
Loading…
Reference in New Issue