diff options
author | Tobias Gunkel | 2012-01-22 23:20:27 +0100 |
---|---|---|
committer | Tobias Gunkel | 2012-02-11 08:29:21 +0100 |
commit | e3f9a09d49aaeb4657862ca734d20279e75c869f (patch) | |
tree | 25f8ac0f69079638444fedc48417b62e430ed655 /backends/base-backend.h | |
parent | fb684565412c69aeb0d0a9837fc5a76b98cbe285 (diff) | |
download | scummvm-rg350-e3f9a09d49aaeb4657862ca734d20279e75c869f.tar.gz scummvm-rg350-e3f9a09d49aaeb4657862ca734d20279e75c869f.tar.bz2 scummvm-rg350-e3f9a09d49aaeb4657862ca734d20279e75c869f.zip |
SCUMM: keep track of the number of nested script calls for a sentence
command in v0
If for instance an object necessary for the sentence command is not reachable or pickupable (try to use faucet (object 55) with jar with water in microwave (object 50), the pick-up script of the jar will tell the actor to pickup object 99 (jar not in microwave)) the actor will try to pick-up the jar infinitely.
This is fixed by counting the amount of nested scripts the sentence command has called (directly or indirectly) so far and aborts it if there have been too many.
Diffstat (limited to 'backends/base-backend.h')
0 files changed, 0 insertions, 0 deletions