char *empty_title = "-------- EMPTY --------";
int i, x, y;
- native_sp_level.game_sp = &game_sp;
-
native_sp_level.width = SP_STD_PLAYFIELD_WIDTH;
native_sp_level.height = SP_STD_PLAYFIELD_HEIGHT;
}
if (i >= SP_MAX_TAPE_LEN)
- Error(ERR_WARN, "SP demo truncated: size exceeds maximum SP demo size %d",
+ Warn("SP demo truncated: size exceeds maximum SP demo size %d",
SP_MAX_TAPE_LEN);
native_sp_level.demo.length = i;
if (!(file = openFile(filename, MODE_READ)))
{
if (!level_info_only)
- Error(ERR_WARN, "cannot open file '%s' -- using empty level", filename);
+ Warn("cannot open file '%s' -- using empty level", filename);
return FALSE;
}
if (!strEqual(mpx_chunk_name, "MPX "))
{
- Error(ERR_WARN, "cannot find MPX ID in file '%s' -- using empty level",
- filename);
+ Warn("cannot find MPX ID in file '%s' -- using empty level", filename);
return FALSE;
}
if (mpx_version != 1)
{
- Error(ERR_WARN, "unknown MPX version in file '%s' -- using empty level",
- filename);
+ Warn("unknown MPX version in file '%s' -- using empty level", filename);
return FALSE;
}
if (mpx_level_count < 1)
{
- Error(ERR_WARN, "no MPX levels found in file '%s' -- using empty level",
- filename);
+ Warn("no MPX levels found in file '%s' -- using empty level", filename);
return FALSE;
}
if (level_pos >= mpx_level_count)
{
- Error(ERR_WARN, "MPX level not found in file '%s' -- using empty level",
- filename);
+ Warn("MPX level not found in file '%s' -- using empty level", filename);
return FALSE;
}
// position file stream to the requested level (in case of level package)
if (seekFile(file, file_seek_pos, SEEK_SET) != 0)
{
- Error(ERR_WARN, "cannot fseek in file '%s' -- using empty level", filename);
+ Warn("cannot fseek in file '%s' -- using empty level", filename);
return FALSE;
}
if (multipart_xpos * SP_STD_PLAYFIELD_WIDTH > SP_MAX_PLAYFIELD_WIDTH ||
multipart_ypos * SP_STD_PLAYFIELD_HEIGHT > SP_MAX_PLAYFIELD_HEIGHT)
{
- Error(ERR_WARN, "multi-part level is too big -- ignoring part of it");
+ Warn("multi-part level is too big -- ignoring part of it");
break;
}
{
setLevelInfoToDefaults_SP();
- Error(ERR_WARN, "single part of multi-part level -- using empty level");
+ Warn("single part of multi-part level -- using empty level");
}
if (reading_multipart_level)
if (!(file = fopen(filename, MODE_WRITE)))
{
- Error(ERR_WARN, "cannot save native level file '%s'", filename);
+ Warn("cannot save native level file '%s'", filename);
return;
}