forked from github/server
Disabling optimizations because one of them broke the combat asserts in
round 512. Fixing a sprintf bug in building names
This commit is contained in:
parent
07ecc3e517
commit
0f0155fd0c
3 changed files with 5 additions and 4 deletions
|
@ -489,8 +489,9 @@ get_unitrow(const fighter * af, const side * vs)
|
||||||
b->rowcache.result = get_row(af->side, row, vs);
|
b->rowcache.result = get_row(af->side, row, vs);
|
||||||
return b->rowcache.result;
|
return b->rowcache.result;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
return b->rowcache.result;
|
return b->rowcache.result;
|
||||||
|
#else
|
||||||
|
return get_row(af->side, row, vs);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,7 +70,7 @@ extern "C" {
|
||||||
#ifdef SMALL_BATTLE_MESSAGES
|
#ifdef SMALL_BATTLE_MESSAGES
|
||||||
boolean small;
|
boolean small;
|
||||||
#endif
|
#endif
|
||||||
#define FASTROW
|
#undef FASTROW
|
||||||
#ifdef FASTROW
|
#ifdef FASTROW
|
||||||
struct {
|
struct {
|
||||||
const struct side * as;
|
const struct side * as;
|
||||||
|
@ -80,7 +80,7 @@ extern "C" {
|
||||||
int result;
|
int result;
|
||||||
} rowcache;
|
} rowcache;
|
||||||
#endif
|
#endif
|
||||||
#define FASTCOUNT
|
#undef FASTCOUNT
|
||||||
#ifdef FASTCOUNT
|
#ifdef FASTCOUNT
|
||||||
struct {
|
struct {
|
||||||
struct side * side;
|
struct side * side;
|
||||||
|
|
|
@ -1820,7 +1820,7 @@ buildingname (const building * b)
|
||||||
{
|
{
|
||||||
char *ibuf = idbuf[(++nextbuf) % 8];
|
char *ibuf = idbuf[(++nextbuf) % 8];
|
||||||
|
|
||||||
snprintf(ibuf, sizeof(ibuf), "%s (%s)", strcheck(b->name, NAMESIZE), itoa36(b->no));
|
snprintf(ibuf, sizeof(name), "%s (%s)", strcheck(b->name, NAMESIZE), itoa36(b->no));
|
||||||
ibuf[sizeof(name)-1] = 0;
|
ibuf[sizeof(name)-1] = 0;
|
||||||
return ibuf;
|
return ibuf;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue