A few bug fixes, new item, canoe, added.
This commit is contained in:
@@ -183,7 +183,14 @@ void update_undeads() {
|
||||
return;
|
||||
}
|
||||
|
||||
while (undeads.length() < ZOMBIE_MAX_COUNT) {
|
||||
int extra = 0;
|
||||
if (MAP_SIZE > 35) {
|
||||
extra = (MAP_SIZE - 35) / 15;
|
||||
}
|
||||
int maxCount = ZOMBIE_MAX_COUNT + extra;
|
||||
if (maxCount > ZOMBIE_MAX_COUNT_CAP) maxCount = ZOMBIE_MAX_COUNT_CAP;
|
||||
|
||||
while (undeads.length() < maxCount) {
|
||||
spawn_undead();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user