Loading

Paste #pzuwc5ysj

  1. changeset:   1187:d05206c98e33
  2. user:        Alberth <alberth@openttd.org>
  3. date:        Wed Oct 22 21:13:45 2014 +0200
  4. summary:     -Fix: Only consider looking one level lower when there is no ride and no path.
  5.  
  6. diff --git a/src/person.cpp b/src/person.cpp
  7. --- a/src/person.cpp
  8. +++ b/src/person.cpp
  9. @@ -864,10 +864,8 @@ AnimateResult Guest::OnAnimate(int delay
  10.                         this->AddSelf(v);
  11.                         this->DecideMoveDirection();
  12.                         return OAR_OK;
  13. -               }
  14.  
  15. -               /* Maybe a path below this voxel? */
  16. -               if (this->z_vox > 0) {
  17. +               } else if (this->z_vox > 0) { // Maybe a path below this voxel?
  18.                         dz--;
  19.                         this->z_vox--;
  20.                         this->z_pos = 255;

Comments