Comments (1)
It seems the code is in a loop trying to spawn monsters.
It seems to be in an infinite loop trying to spawn some specific kind of monster (a list of one entry).
MonsterGroupManager::GetResultFromGroup doesn't decrement the quantity parameter, and the loop continues until it has been reduced to a non positive number...
For some reason the entry.is_group branch doesn't reduce the quantity while the other branches do.
It claims to have found a monster but then delivers an empty list, thus bypassing the logic intended to decrement the count when nothing was found. Some default value is placed in the list, so something is still returned, but the value doesn't decrement.
The loop seems to be in mapgen.cpp operation map::place_spawns.
How to fix this mess? I don't know. That's probably for someone who understands how this convoluted mess is supposed to work (decrease quantity if spawn_details is empty, rather than if a monster is claimed not to be found?).
from cataclysm-dda.
Related Issues (20)
- Refugee Center Guards Do Not Rotate Positions HOT 2
- Bionic menu should reserve some invlets HOT 2
- Zombie Scientists should still have their science ID on them HOT 12
- E-ink tablet pc consumes too much energy
- (Some?) zombies have an absurd preference for their grab attack HOT 4
- uilist issues from migration #74341 HOT 21
- Magiclysm spellcasting menu is missing its category selector HOT 4
- The debug menu has a funny size HOT 7
- Magiclysm spell casting menu doesnโt render color tags in the spell description HOT 1
- power grid action menu should be positioned relative to underlying UI HOT 1
- ImGui uilist menus render their footer text without color tags HOT 6
- Martial arts selection menu needs a size override
- Filter input for ImGui uilist menus shows up behind the menu HOT 1
- progress is not shown when loading a game HOT 1
- Editing your skills with the debug menu segfaults the game HOT 4
- Disassembling/butchering selection Imgui menu does not display time estimation HOT 4
- Component selection menu only ever shows a single menu item HOT 1
- Killing unfolded impossibility with a grenade in LIXA results in a crash
- NPC doctor logic wastes resources disinfecting same wound repeatedly HOT 1
- Randomly crashing when attempting to use a bandage HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cataclysm-dda.