iiag / iiag-legacy

Iiag is a game
Other
7 stars 7 forks source link

Handle timeout gracefully in crtr_spawn #37

Closed emberian closed 10 years ago

emberian commented 10 years ago

Currently, spawning a creature will move it to a random place on the map, trying N times if it can't be put in that random place. An assertion is triggered after N tries. Handle this better, possibly killing the creature or doing an exhaustive search for someplace to put it.

Grissess commented 10 years ago

Ref. https://github.com/iiag/iiag/blob/master/src/creature.c#L163

Grissess commented 10 years ago

Should be fixed in c8226f5d798bc95208bafbced537c2daa71bbf46