- Joined
- Apr 1, 2012
- Messages
- 1,249
- Solutions
- 71
- Reaction score
- 621
- Location
- Hell
- GitHub
- idontreallywolf
TFS 0.4
REV: 3777
V: 8.6
I am trying to enable Player-walktrough-player in pz zone using my old modified function of "canWalkThrough". I did solve the problem before, but I can currently not remember how I did it since i haven't saved those files.
however the problem is (original post):
The solution that I had found was :
I did the same. The only problem at the moment is that if i use
I get the following error:
Why does it even think that (
REV: 3777
V: 8.6
I am trying to enable Player-walktrough-player in pz zone using my old modified function of "canWalkThrough". I did solve the problem before, but I can currently not remember how I did it since i haven't saved those files.
however the problem is (original post):
I was trying to fix player walktrough in pz, and it did work for a moment but i noticed a "bug".
First when two players are on screen, in pz, they can walk trough eachother just fine, except if one is standing on a depot-tile. However. When players go off screen (can't see eachother) and come back. They can't walk trough eachother. I asked cykotitan he mentioned that "sendCreatureImpassable" isn't called whenever necessary, and because of that the client is not able to determine if creature is walkable or not.
The solution that I had found was :
However; I've managed to solve this by calling ..
.. in player.cpp inside "onWalk","addExperience","removeExperience","canWalktrough"C++:g_game.updateCreatureImpassable(this);
I did the same. The only problem at the moment is that if i use
g_game.updateCreatureImpassable(this);
in canWalkThrough
I get the following error:
player.cpp:857:42: error: invalid conversion from ‘const Creature*’ to ‘Creature*’ [-fpermissive]
Why does it even think that (
this
) is a const Creature*
obj ?