Skip to content

Commit

Permalink
MORTEVIELLE: Bugfix for loading data in chartex()
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster authored and Strangerke committed Apr 6, 2012
1 parent c800051 commit b56d4a9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions engines/mortevielle/ovd1.cpp
Expand Up @@ -199,19 +199,22 @@ void ani50() {
if (!f.open("TXX.INP"))
error("Missing file - TXX.INP");

for (int i = 0; i < 125; ++i)
assert(f.size() <= (maxti * 2));
for (i = 0; i < f.size() / 2; ++i)
t_mot[i] = f.readSint16LE();

f.close();

if (!f.open("TXX.NTP"))
error("Missing file - TXX.NTP");
do {

assert(f.size() <= (maxtd * 4));
for (i = 0; i < (f.size() + 3) / 4; ++i) {
t_rec[i].indis = f.readSint16LE();
t_rec[i].point = f.readByte();
f.readByte();
}

i = i + 1;
} while (!f.eos());
f.close();

deline(578, s, i);
Expand Down

0 comments on commit b56d4a9

Please sign in to comment.