projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed debug logging to omit output if debug mode disabled
[rocksndiamonds.git]
/
src
/
game_em
/
reademc.c
diff --git
a/src/game_em/reademc.c
b/src/game_em/reademc.c
index 5184d8d72ed9bb217d57d00e2e622ed1049fe50c..a192b9ba2c1ca57108edaa0531fc7fecc2c4ca39 100644
(file)
--- a/
src/game_em/reademc.c
+++ b/
src/game_em/reademc.c
@@
-693,8
+693,7
@@
int cleanup_em_level(unsigned char *src, int length, char *filename)
/* if file has length of old-style level file, print (wrong) magic byte */
if (length < 2110)
/* if file has length of old-style level file, print (wrong) magic byte */
if (length < 2110)
- Error(ERR_WARN, "unknown magic byte 0x%02x at position 0x%04x",
- src[1983], 1983);
+ Warn("unknown magic byte 0x%02x at position 0x%04x", src[1983], 1983);
return FILE_VERSION_EM_UNKNOWN;
}
return FILE_VERSION_EM_UNKNOWN;
}
@@
-788,7
+787,7
@@
int cleanup_em_level(unsigned char *src, int length, char *filename)
length = 2172;
if (options.debug)
length = 2172;
if (options.debug)
-
Error(ERR_DEBUG
, "EM level file version: %d", file_version);
+
Debug("level:native:EM"
, "EM level file version: %d", file_version);
return file_version;
}
return file_version;
}