diff options
author | Strangerke | 2013-07-19 17:29:33 +0200 |
---|---|---|
committer | Strangerke | 2013-07-19 17:29:33 +0200 |
commit | 72914aafabf88cd7b56ff2a10036e470a8d2f05b (patch) | |
tree | 8e846a9dc917aa072db4278b5015afccec82dc33 | |
parent | ed69aaf9991a63ad34085c67a8f5a04d968871ed (diff) | |
download | scummvm-rg350-72914aafabf88cd7b56ff2a10036e470a8d2f05b.tar.gz scummvm-rg350-72914aafabf88cd7b56ff2a10036e470a8d2f05b.tar.bz2 scummvm-rg350-72914aafabf88cd7b56ff2a10036e470a8d2f05b.zip |
MORTEVIELLE: Simplify the way skip info is computed, as pointed by LordHoto
-rw-r--r-- | engines/mortevielle/outtext.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/engines/mortevielle/outtext.cpp b/engines/mortevielle/outtext.cpp index 6bb775a423..d9d47a9fd3 100644 --- a/engines/mortevielle/outtext.cpp +++ b/engines/mortevielle/outtext.cpp @@ -133,11 +133,9 @@ void TextHandler::loadDesFile(Common::String filename, int32 skipSize, int lengt if (!f.open(filename)) error("Missing file %s", filename.c_str()); - int skipBlock = 0; - while (skipSize > 127) { - ++skipBlock; - skipSize -= 128; - } + int skipBlock = skipSize / 128; + skipSize %= 128; + if (skipBlock != 0) f.seek(skipBlock * 0x80); |