forked from github/server
* Release-target mit -DNDEBUG
* Bugfix verschieben von Gebäuden auf Gletschern * Bugfix Absturz bei fehlender Message
This commit is contained in:
parent
a10f8f09a6
commit
6bf5145ae3
3 changed files with 6 additions and 3 deletions
|
@ -79,7 +79,7 @@ endif
|
|||
|
||||
ifeq ($(CONFIG), release)
|
||||
BUILD_DIR = Release-$(ARCHITECTURE)
|
||||
CFLAGS += -O4 -funroll-loops -fomit-frame-pointer -ggdb
|
||||
CFLAGS += -O4 -DNDEBUG -funroll-loops -fomit-frame-pointer -ggdb
|
||||
LDFLAGS += -ggdb
|
||||
endif
|
||||
|
||||
|
|
|
@ -909,6 +909,7 @@ move_iceberg(region *r)
|
|||
|
||||
/* Personen, Schiffe und Gebäude verschieben */
|
||||
while (rc->buildings) {
|
||||
rc->buildings->region = r;
|
||||
translist(&rc->buildings, &r->buildings, rc->buildings);
|
||||
}
|
||||
while (rc->ships) {
|
||||
|
|
|
@ -47,8 +47,10 @@ cinfo_region(const struct locale * lang, const void * obj, typ_t typ, struct cur
|
|||
assert(typ == TYP_REGION);
|
||||
|
||||
msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no);
|
||||
if (msg) {
|
||||
nr_render(msg, lang, buf, sizeof(buf), NULL);
|
||||
msg_release(msg);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue