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/Instruction.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/Instruction.cpp')
-rw-r--r-- | Stars45/Instruction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Stars45/Instruction.cpp b/Stars45/Instruction.cpp index a14b950..4ee3a9c 100644 --- a/Stars45/Instruction.cpp +++ b/Stars45/Instruction.cpp @@ -58,7 +58,7 @@ Instruction::Instruction(const char* rgn, Point loc, int act) : region(0), action(act), formation(0), status(PENDING), speed(0), target(0), emcon(0), wep_free(0), priority(PRIMARY), farcast(0), hold_time(0) -{ +{ rgn_name = rgn; rloc.SetBaseLocation(loc); rloc.SetDistance(0); @@ -68,7 +68,7 @@ Instruction::Instruction(SimRegion* rgn, Point loc, int act) : region(rgn), action(act), formation(0), status(PENDING), speed(0), target(0), emcon(0), wep_free(0), priority(PRIMARY), farcast(0), hold_time(0) -{ +{ rgn_name = region->Name(); rloc.SetBaseLocation(loc); rloc.SetDistance(0); @@ -248,7 +248,7 @@ Instruction::Evaluate(Ship* ship) if (e->IsFinished() || e->IsSquadron()) continue; - if (e->Name() == tgt_name || + if (e->Name() == tgt_name || (e->GetCommander() && e->GetCommander()->Name() == tgt_name)) { found = true; |