Loading

Paste #pdjz64beh

  1. Index: src/person.cpp
  2. ===================================================================
  3. --- src/person.cpp      (revision 1356)
  4. +++ src/person.cpp      (working copy)
  5. @@ -1063,8 +1063,7 @@
  6.  AnimateResult Guest::EdgeOfWorldOnAnimate()
  7.  {
  8.         /* If the guest ended up off-world, quit. */
  9. -       if (this->x_vox < 0 || this->x_vox >= _world.GetXSize() * 256 ||
  10. -                       this->y_vox < 0 || this->y_vox >= _world.GetYSize() * 256) {
  11. +       if (this->x_vox < 0 || this->x_vox >= _world.GetXSize() || this->y_vox < 0 || this->y_vox >= _world.GetYSize()) {
  12.                 return OAR_DEACTIVATE;
  13.         }

Comments