From f44d6952457b956df88ba9b5c4dbda0148f0cd8e Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 26 Aug 2021 10:33:24 +1000 Subject: [PATCH] - Fix some warning messages in the `defineqav` DEF parser. --- source/core/defparser.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/core/defparser.cpp b/source/core/defparser.cpp index da0cb5840..64a1080cc 100644 --- a/source/core/defparser.cpp +++ b/source/core/defparser.cpp @@ -2026,7 +2026,7 @@ static bool parseDefineQAVInterpolateIgnoreBlock(FScanner& sc, const int& res_id if (sc.StartBraces(&blockend)) { - pos.Message(MSG_ERROR, "defineqav (%d): interpolate: malformed syntax, unable to continue", res_id); + pos.Message(MSG_ERROR, "defineqav (%d): interpolate: ignore: malformed syntax, unable to continue", res_id); return false; } while (!sc.FoundEndBrace(blockend)) @@ -2039,7 +2039,7 @@ static bool parseDefineQAVInterpolateIgnoreBlock(FScanner& sc, const int& res_id // Confirm we received something for 'frames' and 'tiles'. if (scframes.IsEmpty() || sctiles.IsEmpty()) { - pos.Message(MSG_ERROR, "defineqav (%d): interpolate: unable to get any values for 'frames' or 'tiles', unable to continue", res_id); + pos.Message(MSG_ERROR, "defineqav (%d): interpolate: ignore: unable to get any values for 'frames' or 'tiles', unable to continue", res_id); return false; } @@ -2102,7 +2102,7 @@ static bool parseDefineQAVInterpolateBlock(FScanner& sc, const int& res_id, cons if (sc.StartBraces(&blockend)) { - pos.Message(MSG_ERROR, "defineqav (%d): interpolate (%s): malformed syntax, unable to continue", res_id, interptype.GetChars()); + pos.Message(MSG_ERROR, "defineqav (%d): interpolate: malformed syntax, unable to continue", res_id); return false; } while (!sc.FoundEndBrace(blockend)) @@ -2112,13 +2112,13 @@ static bool parseDefineQAVInterpolateBlock(FScanner& sc, const int& res_id, cons { if (interptype.IsNotEmpty()) { - pos.Message(MSG_ERROR, "defineqav (%d): interpolate (%s): more than one interpolation type defined, unable to continue", res_id, interptype.GetChars()); + pos.Message(MSG_ERROR, "defineqav (%d): interpolate: more than one interpolation type defined, unable to continue", res_id); return false; } sc.GetString(interptype); if (!gi->IsQAVInterpTypeValid(interptype)) { - pos.Message(MSG_ERROR, "defineqav (%d): interpolate (%s): interpolation type not found", res_id, interptype.GetChars()); + pos.Message(MSG_ERROR, "defineqav (%d): interpolate: interpolation type not found", res_id); return false; } }