minor cleanup

svn-id: r3476
This commit is contained in:
Ludvig Strigeus 2001-11-08 20:00:33 +00:00
parent 68345930b5
commit 355df1bbd5
2 changed files with 5 additions and 7 deletions

View file

@ -58,11 +58,9 @@ void Scumm::openRoom(int room) {
_fileOffset = _roomFileOffsets[room];
return;
}
if (room==0) {
sprintf(buf, "%s.000", _exe_name);
} else {
sprintf(buf, "%s.%.3d", _exe_name, res.roomno[1][room]);
}
sprintf(buf, "%s.%.3d", _exe_name,
room==0 ? 0 : res.roomno[rtRoom][room]);
_encbyte = 0x69;
if (openResourceFile(buf)) {
if (room==0)

View file

@ -409,8 +409,8 @@ NextArg:;
struct VersionSettings {
char *filename;
char *gamename;
const char *filename;
const char *gamename;
byte id,major,middle,minor;
};