src/ formatting
Clean up quite a bit of minor things found with simple grep patterns: operator at end of continued line instead of beginning of continuation (and a few comments which produced false matches, so that they won't do so next time), trailing spaces (only one or two of those), tabs (a dozen or so of those), several casts which didn't have a space between the type and the expression (I wasn't systematic about finding these). I think the only code change was in the function for the help command.
This commit is contained in:
18
src/vision.c
18
src/vision.c
@@ -379,8 +379,8 @@ STATIC_DCL int FDECL(new_angle, (struct rm *, unsigned char *, int, int));
|
||||
* @ <-- hero --> @
|
||||
*
|
||||
*
|
||||
* We fake the above check by only checking if the horizontal &
|
||||
* vertical positions adjacent to the crosswall and T wall are
|
||||
* We fake the above check by only checking if the horizontal
|
||||
* & vertical positions adjacent to the crosswall and T wall are
|
||||
* unblocked. Then, _in general_ we can see beyond. Generally,
|
||||
* this is good enough.
|
||||
*
|
||||
@@ -388,8 +388,8 @@ STATIC_DCL int FDECL(new_angle, (struct rm *, unsigned char *, int, int));
|
||||
* information (we're doing a top down scan in vision_recalc).
|
||||
* We would need to scan once to set all IN_SIGHT and COULD_SEE
|
||||
* bits, then again to correctly set the seenv bits.
|
||||
* + I'm trying to make this as cheap as possible. The display &
|
||||
* vision eat up too much CPU time.
|
||||
* + I'm trying to make this as cheap as possible. The display
|
||||
* & vision eat up too much CPU time.
|
||||
*
|
||||
*
|
||||
* Note: Even as I write this, I'm still not convinced. There are too
|
||||
@@ -877,11 +877,11 @@ int x, y;
|
||||
}
|
||||
|
||||
/*==========================================================================*\
|
||||
| |
|
||||
| Everything below this line uses (y,x) instead of (x,y) --- the |
|
||||
| algorithms are faster if they are less recursive and can scan |
|
||||
| on a row longer. |
|
||||
| |
|
||||
: :
|
||||
: Everything below this line uses (y,x) instead of (x,y) --- the :
|
||||
: algorithms are faster if they are less recursive and can scan :
|
||||
: on a row longer. :
|
||||
: :
|
||||
\*==========================================================================*/
|
||||
|
||||
/* ======================================================================= *\
|
||||
|
||||
Reference in New Issue
Block a user