• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

TFS 1.X+ Pushing people from stack order

RobertoSeagal

New Member
Joined
Apr 1, 2020
Messages
2
Reaction score
0
I've got tfs downgraded to 8.0 by ninja. Problem is that when I try to push person standing on stack(e.g next to stairs) I always push first person who entered sqm instead of the last one.
 
I managed to fix this with the help of my friend Jhon_
game.cpp change
C++:
thing = tile->getTopVisibleCreature(player);
for this
C++:
thing = tile->getBottomVisibleCreature(player);
tile.cpp change
C++:
const Creature* Tile::getBottomCreature() const
for this
C++:
Creature* Tile::getBottomCreature() const
change this
C++:
const Creature* Tile::getBottomVisibleCreature(const Creature* creature) const
for this
C++:
Creature* Tile::getBottomVisibleCreature(const Creature* creature) const
and in tile.h change
C++:
const Creature* getBottomCreature() const;
for this
C++:
Creature* getBottomCreature() const;
change this
C++:
const Creature* getBottomVisibleCreature(const Creature* creature) const;
for this
C++:
Creature* getBottomVisibleCreature(const Creature* creature) const;
and its done
 
Back
Top