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/CampaignSaveGame.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Stars45/CampaignSaveGame.cpp') diff --git a/Stars45/CampaignSaveGame.cpp b/Stars45/CampaignSaveGame.cpp index b63fc4e..4caf0d6 100644 --- a/Stars45/CampaignSaveGame.cpp +++ b/Stars45/CampaignSaveGame.cpp @@ -226,7 +226,7 @@ CampaignSaveGame::Load(const char* filename) Sleep(5); delete term; term = 0; term = parser.ParseTerm(); - + if (term) { TermDef* def = term->isDef(); if (def) { @@ -505,7 +505,7 @@ CampaignSaveGame::Load(const char* filename) CombatGroup* player_group = campaign->FindGroup(grp_iff, grp_type, grp_id); if (player_group) { CombatUnit* player_unit = 0; - + if (unit.length()) player_unit = player_group->FindUnit(unit); @@ -633,7 +633,7 @@ CampaignSaveGame::Save(const char* name) while (++a_iter) { CombatAction* a = a_iter.value(); fprintf(f, "action: { id:%4d, stat:%d", a->Identity(), a->Status()); - + if (a->Status() == CombatAction::PENDING) { if (a->Count()) fprintf(f, ", count:%d", a->Count()); @@ -734,7 +734,7 @@ CampaignSaveGame::GetResumeFile() // check for auto save game: FILE* f; ::fopen_s(&f, GetSaveDirectory() + "/AutoSave", "r"); - + if (f) { ::fclose(f); -- cgit v1.1