diff options
author | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2022-01-30 17:41:24 +0100 |
commit | 51657e10769faa2617d546a06c42e4c62a19bb50 (patch) | |
tree | 688ad8b61ac02e50974684b9b7d3f886fb469e5f /Stars45/Mission.cpp | |
parent | db987e23d5dd33a5db8764743facbb906ac22b0f (diff) | |
download | starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.zip starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.gz starshatter-51657e10769faa2617d546a06c42e4c62a19bb50.tar.bz2 |
Removed trailing whitespace all over the place
Diffstat (limited to 'Stars45/Mission.cpp')
-rw-r--r-- | Stars45/Mission.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<StarSystem> sys_iter = system_list; while (++sys_iter) { StarSystem* sys = sys_iter.value(); - + if (sys != star_system) { s += "\"\nsystem: \""; s += sys->Name(); |