summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-22 12:42:35 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-06-22 12:42:35 +0000
commit1d64b7a037435aee796f068770a0c2ca2b19a93a (patch)
treee211c9da2b6a4303df5717a3ddf2ed16736f3a76 /src/engine.cpp
parentc3628bdf27c92cd7b339393e7472f9528c8a1c5c (diff)
downloadmana-client-1d64b7a037435aee796f068770a0c2ca2b19a93a.tar.gz
mana-client-1d64b7a037435aee796f068770a0c2ca2b19a93a.tar.bz2
mana-client-1d64b7a037435aee796f068770a0c2ca2b19a93a.tar.xz
mana-client-1d64b7a037435aee796f068770a0c2ca2b19a93a.zip
Detect ghosts at creation time.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 69e4c04e..3d18f8ad 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -374,30 +374,8 @@ void Engine::draw()
}
// Draw a player
- /**
- * NOTES (by Javila):
- * - I'm not sure if comparing if being->id is less then 110000000
- * will create colateral effects (missing some player), but I think
- * this will avoid drawing ghosts too, since they have IDs greater
- * then value above.
- * - Also this high ID values are used for monsters and not for
- * players!!! Maybe can there be some monsters in server using
- * invalid monsterset's ID... This way server send the unknown
- * monster to client and tmw is guessing that this is a player...
- * Errors like this are (or at least were) found in mob_db when
- * monsters dropped unknown items (invalid items IDs)... Ok, I
- * did check on server scripts files (CVS) and haven't found these
- * errors... Do anybody have an idea about this???
- */
- else if (being->job < 10)
+ else if (being->isPlayer())
{
- // Don't draw ghosts!!!
- if ((std::string(being->name).empty()) && (being != player_node))
- {
- beingIterator++;
- continue;
- }
-
being->text_x = sx * 32 + get_x_offset(being) - offset_x;
being->text_y = sy * 32 + get_y_offset(being) - offset_y;