more reformatting - label placement
Indent all labels one space. Having uniform placement makes spotting them much easier. (Having no indent at all would impact the change bars of 'git diff'. Those display the last unindented line--which doesn't start with punctuation--occuring before each band of changes, so usually the name of the function being changed now that we no longer have unindented K&R-style function argument declarations.) While in there, shorten or split various wide lines and replace a few tabs with spaces.
This commit is contained in:
16
src/vision.c
16
src/vision.c
@@ -667,7 +667,7 @@ vision_recalc(int control)
|
||||
do_light_sources(next_array);
|
||||
|
||||
/*
|
||||
* Make the g.viz_array the new array so that cansee() will work correctly.
|
||||
* Make the viz_array the new array so that cansee() will work correctly.
|
||||
*/
|
||||
temp_array = g.viz_array;
|
||||
g.viz_array = next_array;
|
||||
@@ -783,7 +783,7 @@ vision_recalc(int control)
|
||||
* infrared monster there.
|
||||
*/
|
||||
} else {
|
||||
not_in_sight:
|
||||
not_in_sight:
|
||||
if ((old_row[col] & IN_SIGHT)
|
||||
|| ((next_row[col] & COULD_SEE)
|
||||
^ (old_row[col] & COULD_SEE)))
|
||||
@@ -794,7 +794,7 @@ vision_recalc(int control)
|
||||
} /* end for row . . */
|
||||
colbump[u.ux] = colbump[u.ux + 1] = 0;
|
||||
|
||||
skip:
|
||||
skip:
|
||||
/* This newsym() caused a crash delivering msg about failure to open
|
||||
* dungeon file init_dungeons() -> panic() -> done(11) ->
|
||||
* vision_recalc(2) -> newsym() -> crash! u.ux and u.uy are 0 and
|
||||
@@ -1550,7 +1550,7 @@ clear_path(int col1, int row1, int col2, int row2)
|
||||
}
|
||||
}
|
||||
#ifdef MACRO_CPATH
|
||||
cleardone:
|
||||
cleardone:
|
||||
#endif
|
||||
return (boolean) result;
|
||||
}
|
||||
@@ -1668,7 +1668,7 @@ right_side(int row, int left, int right_mark, const xchar *limits)
|
||||
} else {
|
||||
q4_path(start_row, start_col, row, left, rside1);
|
||||
}
|
||||
rside1: /* used if q?_path() is a macro */
|
||||
rside1: /* used if q?_path() is a macro */
|
||||
if (result)
|
||||
break;
|
||||
}
|
||||
@@ -1722,7 +1722,7 @@ right_side(int row, int left, int right_mark, const xchar *limits)
|
||||
} else {
|
||||
q4_path(start_row, start_col, row, right, rside2);
|
||||
}
|
||||
rside2: /* used if q?_path() is a macro */
|
||||
rside2: /* used if q?_path() is a macro */
|
||||
if (!result)
|
||||
break;
|
||||
}
|
||||
@@ -1833,7 +1833,7 @@ left_side(int row, int left_mark, int right, const xchar *limits)
|
||||
} else {
|
||||
q3_path(start_row, start_col, row, right, lside1);
|
||||
}
|
||||
lside1: /* used if q?_path() is a macro */
|
||||
lside1: /* used if q?_path() is a macro */
|
||||
if (result)
|
||||
break;
|
||||
}
|
||||
@@ -1865,7 +1865,7 @@ left_side(int row, int left_mark, int right, const xchar *limits)
|
||||
} else {
|
||||
q3_path(start_row, start_col, row, left, lside2);
|
||||
}
|
||||
lside2: /* used if q?_path() is a macro */
|
||||
lside2: /* used if q?_path() is a macro */
|
||||
if (!result)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user