* Release-target mit -DNDEBUG

* Bugfix verschieben von Gebäuden auf Gletschern
* Bugfix Absturz bei fehlender Message
This commit is contained in:
Enno Rehling 2002-07-21 09:04:07 +00:00
parent a10f8f09a6
commit 6bf5145ae3
3 changed files with 6 additions and 3 deletions

View File

@ -79,7 +79,7 @@ endif
ifeq ($(CONFIG), release) ifeq ($(CONFIG), release)
BUILD_DIR = Release-$(ARCHITECTURE) BUILD_DIR = Release-$(ARCHITECTURE)
CFLAGS += -O4 -funroll-loops -fomit-frame-pointer -ggdb CFLAGS += -O4 -DNDEBUG -funroll-loops -fomit-frame-pointer -ggdb
LDFLAGS += -ggdb LDFLAGS += -ggdb
endif endif

View File

@ -909,6 +909,7 @@ move_iceberg(region *r)
/* Personen, Schiffe und Gebäude verschieben */ /* Personen, Schiffe und Gebäude verschieben */
while (rc->buildings) { while (rc->buildings) {
rc->buildings->region = r;
translist(&rc->buildings, &r->buildings, rc->buildings); translist(&rc->buildings, &r->buildings, rc->buildings);
} }
while (rc->ships) { while (rc->ships) {

View File

@ -47,8 +47,10 @@ cinfo_region(const struct locale * lang, const void * obj, typ_t typ, struct cur
assert(typ == TYP_REGION); assert(typ == TYP_REGION);
msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no); msg = msg_message(mkname("curseinfo", c->type->cname), "id", c->no);
if (msg) {
nr_render(msg, lang, buf, sizeof(buf), NULL); nr_render(msg, lang, buf, sizeof(buf), NULL);
msg_release(msg); msg_release(msg);
}
return 1; return 1;
} }