diff options
author | Paul Gilbert | 2012-01-20 12:04:13 +1100 |
---|---|---|
committer | Strangerke | 2012-04-06 08:20:07 +0200 |
commit | 1c1f58ec5d3fc75eb420bbfbbd405b1e56092137 (patch) | |
tree | 849c5f33fde2c3cfa5e5d99645f13b4efec47139 /engines/mortevielle | |
parent | 8f32aa48aae89e6ebd0d14a8beea380fb32d5f78 (diff) | |
download | scummvm-rg350-1c1f58ec5d3fc75eb420bbfbbd405b1e56092137.tar.gz scummvm-rg350-1c1f58ec5d3fc75eb420bbfbbd405b1e56092137.tar.bz2 scummvm-rg350-1c1f58ec5d3fc75eb420bbfbbd405b1e56092137.zip |
MORTEVIELLE: Fixed data reading in adzon()
Diffstat (limited to 'engines/mortevielle')
-rw-r--r-- | engines/mortevielle/level15.cpp | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/engines/mortevielle/level15.cpp b/engines/mortevielle/level15.cpp index 9243426c33..b0ed953aa4 100644 --- a/engines/mortevielle/level15.cpp +++ b/engines/mortevielle/level15.cpp @@ -158,35 +158,20 @@ end; void adzon() { Common::File f; -// Common::File g; -// byte a; -// int i; if (!f.open("don.mor")) error("Missing file - don.mor"); - f.read(tabdon, 7); + f.read(tabdon, 7 * 256); f.close(); if (!f.open("bmor.mor")) error("Missing file - bmor.mor"); - f.read(&tabdon[fleche], 1); - /*i:=fleche; - repeat - read(g,a); - tabdon[i]:=a; - i:=succ(i); - until i=fleche + 1916;*/ + f.read(&tabdon[fleche], 1 * 1916); f.close(); if (!f.open("dec.mor")) - error("Missing files - dec.moir"); - f.read(&mem[0x73a2 * 16 + 0], 1); - /*i:=0; - repeat - read(g,a); - mem[$73A2:i]:=a; - i:=succ(i); - until eof(g);*/ + error("Missing file - dec.mor"); + f.read(&mem[0x73a2 * 16 + 0], 1 * 1664); f.close(); } |