Merge pull request #878 from EgzoT/EgzoT-map_missile_bug

[Probable bug] Double use function onAppear
master
Eduardo Bart преди 7 години committed by GitHub
родител aa19f45d94 f4f3219d61
ревизия aeb98810ed
No known key found for this signature in database
GPG ключ ID: 4AEE18F83AFDEB23

@ -116,7 +116,6 @@ void Map::addThing(const ThingPtr& thing, const Position& pos, int stackPos)
} else {
if(thing->isMissile()) {
m_floorMissiles[pos.z].push_back(thing->static_self_cast<Missile>());
thing->onAppear();
} else if(thing->isAnimatedText()) {
// this code will stack animated texts of the same color
AnimatedTextPtr animatedText = thing->static_self_cast<AnimatedText>();

Зареждане…
Отказ
Запис