Skip to content

Commit 4a7e4af

Browse files
committed
cleanup vars
1 parent f1623b0 commit 4a7e4af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

code/missioneditor/missionsave.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3547,7 +3547,7 @@ int Fred_mission_save::save_objects()
35473547
fout("\n$Arrival Anchor:");
35483548
}
35493549

3550-
z = shipp->arrival_anchor;
3550+
int z = shipp->arrival_anchor;
35513551
if (z < 0) {
35523552
fout(" <error>");
35533553
} else if (z & SPECIAL_ARRIVAL_ANCHOR_FLAG) {
@@ -4832,14 +4832,14 @@ int Fred_mission_save::save_waypoint_list(const waypoint_list* wp_list)
48324832
int Fred_mission_save::save_wings()
48334833
{
48344834
SCP_string sexp_out;
4835-
int i, j, z, count = 0;
4835+
int count = 0;
48364836

48374837
fred_parse_flag = 0;
48384838
required_string_fred("#Wings");
48394839
parse_comments(2);
48404840
fout("\t\t;! %d total", Num_wings);
48414841

4842-
for (i = 0; i < MAX_WINGS; i++) {
4842+
for (int i = 0; i < MAX_WINGS; i++) {
48434843
if (!Wings[i].wave_count)
48444844
continue;
48454845

@@ -4909,7 +4909,7 @@ int Fred_mission_save::save_wings()
49094909
else
49104910
fout("\n$Arrival Anchor:");
49114911

4912-
z = Wings[i].arrival_anchor;
4912+
int z = Wings[i].arrival_anchor;
49134913
if (z < 0) {
49144914
fout(" <error>");
49154915
} else if (z & SPECIAL_ARRIVAL_ANCHOR_FLAG) {
@@ -5014,7 +5014,7 @@ int Fred_mission_save::save_wings()
50145014
parse_comments();
50155015
fout(" (\t\t;! %d total\n", Wings[i].wave_count);
50165016

5017-
for (j = 0; j < Wings[i].wave_count; j++) {
5017+
for (int j = 0; j < Wings[i].wave_count; j++) {
50185018
//ship = Wings[i].ship_index[j];
50195019
// if (Objects[Ships[ship].objnum].type == OBJ_START)
50205020
// fout("\t\"Player 1\"\n");

0 commit comments

Comments
 (0)