MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / notifyActiveSpotRemoved

Method notifyActiveSpotRemoved

source/rooms/RoomCrypt.cpp:159–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159void RoomCrypt::notifyActiveSpotRemoved(ActiveSpotPlace place, Tile* tile)
160{
161 Room::notifyActiveSpotRemoved(place, tile);
162 if(place != ActiveSpotPlace::activeSpotCenter)
163 return;
164
165 std::pair<Creature*,int32_t> rottingCreature = mRottingCreatures[tile];
166 mRottingCreatures.erase(tile);
167 if(rottingCreature.first == nullptr)
168 return;
169
170 // If the dead creature is already rotting, we add it back to its tile so that it can continue
171 // its normal dead creature life ^^
172 if(rottingCreature.second == -1)
173 return;
174
175 rottingCreature.first->addEntityToPositionTile();
176}
177
178void RoomCrypt::absorbRoom(Room *r)
179{

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected