From 64ee4a54f4730cdf777d75694ab48280f543ac88 Mon Sep 17 00:00:00 2001 From: "FWoltermann@gmail.com" Date: Thu, 8 Dec 2011 18:12:44 +0000 Subject: More scoping fixes --- Stars45/FlightDeck.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Stars45/FlightDeck.cpp') diff --git a/Stars45/FlightDeck.cpp b/Stars45/FlightDeck.cpp index fe1f5db..4048923 100644 --- a/Stars45/FlightDeck.cpp +++ b/Stars45/FlightDeck.cpp @@ -212,10 +212,10 @@ FlightDeck::FlightDeck(const FlightDeck& s) slots[i].filter = s.slots[i].filter; } - for (i = 0; i < NUM_APPROACH_PTS; i++) + for (int i = 0; i < NUM_APPROACH_PTS; i++) approach_rel[i] = s.approach_rel[i]; - for (i = 0; i < 2; i++) + for (int i = 0; i < 2; i++) runway_rel[i] = s.runway_rel[i]; if (s.light) { @@ -510,7 +510,7 @@ FlightDeck::ExecFrame(double seconds) } if (advance_queue) { - for (i = 0; i < num_slots; i++) { + for (int i = 0; i < num_slots; i++) { FlightDeckSlot* slot = &slots[i]; if (slot->state == QUEUED && slot->sequence > 1) slot->sequence--; @@ -688,7 +688,7 @@ FlightDeck::Orient(const Physical* rep) for (int i = 0; i < num_approach_pts; i++) approach_point[i] = (approach_rel[i] * orientation) + loc; - for (i = 0; i < num_slots; i++) + for (int i = 0; i < num_slots; i++) slots[i].spot_loc = (slots[i].spot_rel * orientation) + loc; if (IsRecoveryDeck()) { -- cgit v1.1