wormhole:

- ageing happens too early, and happens twice!
- set the size of the wormhole on creation
This commit is contained in:
Enno Rehling 2004-02-21 23:40:06 +00:00
parent 90ac737d60
commit c8240a80a7
1 changed files with 2 additions and 1 deletions

View File

@ -1165,6 +1165,7 @@ readgame(const char * filename, int backup)
for (r=regions;r;r=r->next) { for (r=regions;r;r=r->next) {
building ** bp; building ** bp;
#if 0 #if 0
/* what is this doing here? ageing happens at the end of the turn. goddamn it. */
unit ** up; unit ** up;
ship ** sp; ship ** sp;
@ -1184,7 +1185,6 @@ readgame(const char * filename, int backup)
if (s==*sp) handle_event(&s->attribs, "create", s); if (s==*sp) handle_event(&s->attribs, "create", s);
if (s==*sp) sp = &(*sp)->next; if (s==*sp) sp = &(*sp)->next;
} }
#endif
/* Gebäude */ /* Gebäude */
for (bp=&r->buildings;*bp;) { for (bp=&r->buildings;*bp;) {
building * b = *bp; building * b = *bp;
@ -1192,6 +1192,7 @@ readgame(const char * filename, int backup)
if (b==*bp) handle_event(&b->attribs, "create", b); if (b==*bp) handle_event(&b->attribs, "create", b);
if (b==*bp) bp = &(*bp)->next; if (b==*bp) bp = &(*bp)->next;
} }
#endif
} }
return 0; return 0;