| CODENOTIFIER | HelpYou are not signed inSign in |
Project: ScummVM
Revision: 34737
Author: dreammaster
Date: 04 Oct 2008 07:10:25
Changes:Bugfix to prevent NPC characters managing to walk beyond room exits without leaving the room, and thus getting stuck
Files:| ... | ...@@ -2760,11 +2760,11 @@ | |
| 2760 | 2760 | // Walking done |
| 2761 | 2761 | h.currentActions().top().setAction(DISPATCH_ACTION); |
| 2762 | 2762 | |
| 2763 | if (h.destHotspotId() != 0) { | |
| 2763 | // if (h.destHotspotId() != 0) { | |
| 2764 | 2764 | // Walking to an exit, check for any required room change |
| 2765 | 2765 | if (Support::checkRoomChange(h)) |
| 2766 | 2766 | break; |
| 2767 | } | |
| 2767 | // } | |
| 2768 | 2768 | } |
| 2769 | 2769 | |
| 2770 | 2770 | h.setOccupied(true); |