Browse Source

[Probable bug] Double use function onAppear

Method Map::addThing uses two times function onAppear for object Missile.
First used in line 119, but then used again the same function in line 165.
Without first function onAppear method Map::addThing work the same.
EgzoT 3 years ago
parent
commit
f4f3219d61
1 changed files with 0 additions and 1 deletions
  1. 0
    1
      src/client/map.cpp

+ 0
- 1
src/client/map.cpp View File

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

Loading…
Cancel
Save