From b3ab0cf3ce1a650480c7e05af79d4f6b1c516b07 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sun, 21 Jul 2019 11:31:33 -0700 Subject: JANITORIAL: Glk engine block formatting --- engines/glk/frotz/processor_buffer.cpp | 3 +-- engines/glk/frotz/quetzal.cpp | 3 +-- engines/glk/glk_dispa.cpp | 6 ++---- engines/glk/hugo/hugo.cpp | 28 ++++++++++------------------ 4 files changed, 14 insertions(+), 26 deletions(-) diff --git a/engines/glk/frotz/processor_buffer.cpp b/engines/glk/frotz/processor_buffer.cpp index 9473411b51..734a5309fc 100644 --- a/engines/glk/frotz/processor_buffer.cpp +++ b/engines/glk/frotz/processor_buffer.cpp @@ -177,8 +177,7 @@ void Processor::runtimeError(ErrorCode errNum) { if (_err_report_mode == ERR_REPORT_ONCE) { print_string(" (will ignore further occurrences)"); - } - else { + } else { print_string(" (occurence "); print_long(_errorCount[errNum - 1], 10); print_char(')'); diff --git a/engines/glk/frotz/quetzal.cpp b/engines/glk/frotz/quetzal.cpp index 64929c0f5b..79747bde21 100644 --- a/engines/glk/frotz/quetzal.cpp +++ b/engines/glk/frotz/quetzal.cpp @@ -78,8 +78,7 @@ bool Quetzal::save(Common::WriteStream *svf, Processor *proc, const Common::Stri if (c == 0) { // It's a run of equal bytes ++j; - } - else { + } else { // Write out any run there may be. if (j > 0) { for (; j > 0x100; j -= 0x100) { diff --git a/engines/glk/glk_dispa.cpp b/engines/glk/glk_dispa.cpp index 2b7108641c..e08064e989 100644 --- a/engines/glk/glk_dispa.cpp +++ b/engines/glk/glk_dispa.cpp @@ -1038,8 +1038,7 @@ void GlkAPI::gidispatch_call(uint32 funcnum, uint32 numargs, gluniversal_t *argl arglist[3]._opaqueref = dat.window; arglist[4]._uint = dat.val1; arglist[5]._uint = dat.val2; - } - else { + } else { glk_cancel_line_event((Window *)arglist[0]._opaqueref, nullptr); } break; @@ -1308,8 +1307,7 @@ void GlkAPI::gidispatch_call(uint32 funcnum, uint32 numargs, gluniversal_t *argl arglist[1]._sint = dat.high_sec; arglist[2]._uint = dat.low_sec; arglist[3]._sint = dat.microsec; - } - else { + } else { glk_current_time(nullptr); } break; diff --git a/engines/glk/hugo/hugo.cpp b/engines/glk/hugo/hugo.cpp index 72db1a2489..06285a470f 100644 --- a/engines/glk/hugo/hugo.cpp +++ b/engines/glk/hugo/hugo.cpp @@ -172,15 +172,13 @@ Common::Error Hugo::readSaveData(Common::SeekableReadStream *rs) { /* Check serial number */ if (!hugo_fgets(testserial, 9, rs)) goto RestoreError; - if (strcmp(testserial, serial)) - { + if (strcmp(testserial, serial)) { GUIErrorMessage("Save file created by different version."); goto RestoreError; } /* Restore variables */ - for (k=0; k