From e7ddc4178a5f84788846c9ddb55edb85b0136302 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 15 Sep 2020 21:45:05 +0200 Subject: [PATCH] - fixed bad Printf formatting directives in swcustom parser. --- source/sw/src/scrip2.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/source/sw/src/scrip2.cpp b/source/sw/src/scrip2.cpp index 1a9c4abd7..b0eb8533c 100644 --- a/source/sw/src/scrip2.cpp +++ b/source/sw/src/scrip2.cpp @@ -544,7 +544,7 @@ void LoadCustomInfoFromScript(const char *filename) break; } default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } } @@ -585,7 +585,7 @@ void LoadCustomInfoFromScript(const char *filename) break; } default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } } @@ -600,7 +600,7 @@ void LoadCustomInfoFromScript(const char *filename) if (sc.ParseError) curskill = -1; if ((unsigned)--curskill >= 4u) { - sc.ScriptMessage("Skill number %d not in range 1-4 on line %s:%d\n", curskill + 1); + sc.ScriptMessage("Skill number %d not in range 1-4", curskill + 1); curskill = -1; break; } @@ -618,7 +618,7 @@ void LoadCustomInfoFromScript(const char *filename) break; } default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } } @@ -702,7 +702,7 @@ void LoadCustomInfoFromScript(const char *filename) amt = sc.Number; break; default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } } @@ -770,7 +770,7 @@ void LoadCustomInfoFromScript(const char *filename) wpickup = sc.Number; break; default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } } @@ -830,7 +830,7 @@ void LoadCustomInfoFromScript(const char *filename) trak = sc.Number; break; default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } } @@ -848,7 +848,7 @@ void LoadCustomInfoFromScript(const char *filename) case CM_SECRET: case CM_QUIT: default: - sc.ScriptError("Unknown keyword %d", sc.String); + sc.ScriptError("Unknown keyword %s", sc.String); break; } }