mirror of
https://github.com/edubart/otclient.git
synced 2025-05-03 02:59:21 +02:00
Merge pull request #878 from EgzoT/EgzoT-map_missile_bug
[Probable bug] Double use function onAppear
This commit is contained in:
commit
aeb98810ed
@ -116,7 +116,6 @@ void Map::addThing(const ThingPtr& thing, const Position& pos, int stackPos)
|
|||||||
} else {
|
} else {
|
||||||
if(thing->isMissile()) {
|
if(thing->isMissile()) {
|
||||||
m_floorMissiles[pos.z].push_back(thing->static_self_cast<Missile>());
|
m_floorMissiles[pos.z].push_back(thing->static_self_cast<Missile>());
|
||||||
thing->onAppear();
|
|
||||||
} else if(thing->isAnimatedText()) {
|
} else if(thing->isAnimatedText()) {
|
||||||
// this code will stack animated texts of the same color
|
// this code will stack animated texts of the same color
|
||||||
AnimatedTextPtr animatedText = thing->static_self_cast<AnimatedText>();
|
AnimatedTextPtr animatedText = thing->static_self_cast<AnimatedText>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user