From c91a07229a8bd841e6b6e77d977254c388a2e407 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 18 Sep 2010 10:55:16 +0000 Subject: JANITORIAL: Removed most punctuation at end of warning() and error() Our warning() and error() functions always add an exclamation mark to the end of the message anyway. svn-id: r52791 --- engines/sword1/logic.cpp | 4 ++-- engines/sword1/sound.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/sword1') diff --git a/engines/sword1/logic.cpp b/engines/sword1/logic.cpp index 35d8e14f27..ef54167d41 100644 --- a/engines/sword1/logic.cpp +++ b/engines/sword1/logic.cpp @@ -1017,7 +1017,7 @@ int Logic::fnNewScript(Object *cpt, int32 id, int32 script, int32 d, int32 e, in int Logic::fnSubScript(Object *cpt, int32 id, int32 script, int32 d, int32 e, int32 f, int32 z, int32 x) { cpt->o_tree.o_script_level++; if (cpt->o_tree.o_script_level == TOTAL_script_levels) - error("Compact %d: script level exceeded in fnSubScript.", id); + error("Compact %d: script level exceeded in fnSubScript", id); cpt->o_tree.o_script_pc[cpt->o_tree.o_script_level] = script; cpt->o_tree.o_script_id[cpt->o_tree.o_script_level] = script; return SCRIPT_STOP; @@ -1605,7 +1605,7 @@ int Logic::fnStopMusic(Object *cpt, int32 id, int32 a, int32 b, int32 c, int32 d } int Logic::fnInnerSpace(Object *cpt, int32 id, int32 a, int32 b, int32 c, int32 d, int32 z, int32 x) { - error("fnInnerSpace() not working."); + error("fnInnerSpace() not working"); return SCRIPT_STOP; // for compilers that don't support NORETURN } diff --git a/engines/sword1/sound.cpp b/engines/sword1/sound.cpp index da9a83cdff..55600cfb63 100644 --- a/engines/sword1/sound.cpp +++ b/engines/sword1/sound.cpp @@ -535,7 +535,7 @@ void Sound::calcWaveVolume(int16 *data, uint32 length) { _waveVolPos = 0; for (uint32 blkCnt = 1; blkCnt < length / 918; blkCnt++) { if (blkCnt >= WAVE_VOL_TAB_LENGTH) { - warning("Wave vol tab too small."); + warning("Wave vol tab too small"); return; } int32 average = 0; -- cgit v1.2.3