From 51657e10769faa2617d546a06c42e4c62a19bb50 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 30 Jan 2022 17:41:24 +0100 Subject: Removed trailing whitespace all over the place --- Stars45/Mission.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Stars45/Mission.cpp') diff --git a/Stars45/Mission.cpp b/Stars45/Mission.cpp index ee9f9b6..6438cc4 100644 --- a/Stars45/Mission.cpp +++ b/Stars45/Mission.cpp @@ -479,7 +479,7 @@ Mission::Save() FILE* f; fopen_s(&f, fname, "w"); if (f) { - fwrite(content.data(), content.length(), 1, f); + fwrite(content.data(), content.length(), 1, f); fclose(f); } @@ -1082,7 +1082,7 @@ Mission::ParseInstruction(TermStruct* val, MissionElement* element) if (defname == "cmd") { GetDefText(order_name, pdef, filename); - + for (int cmd = 0; cmd < Instruction::NUM_ACTIONS; cmd++) if (!_stricmp(order_name, Instruction::ActionName(cmd))) order = cmd; @@ -1090,7 +1090,7 @@ Mission::ParseInstruction(TermStruct* val, MissionElement* element) else if (defname == "status") { GetDefText(status_name, pdef, filename); - + for (int n = 0; n < Instruction::NUM_STATUS; n++) if (!_stricmp(status_name, Instruction::StatusName(n))) status = n; @@ -1373,7 +1373,7 @@ Mission::Serialize(const char* player_elem, int player_index) ListIter sys_iter = system_list; while (++sys_iter) { StarSystem* sys = sys_iter.value(); - + if (sys != star_system) { s += "\"\nsystem: \""; s += sys->Name(); -- cgit v1.1