projects
/
open-adventure.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup leftover comments
[open-adventure.git]
/
main.c
diff --git
a/main.c
b/main.c
index 75f646e4c0efa415d226c9f660d98a77b1eabb2d..374df37c49c38d57dd8e9a7e4a61ce0e6f51cdba 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-8,7
+8,7
@@
* Now that the code has been restructured into something much closer
* to idiomatic C, the following is more appropriate:
*
* Now that the code has been restructured into something much closer
* to idiomatic C, the following is more appropriate:
*
- * ESR apologizes for the remaing gotos (now confined to
two functions
+ * ESR apologizes for the remaing gotos (now confined to
one function
* in this file - there used to be over 350 of them, *everywhere*),
* and for the offensive globals. Applying the Structured Program
* Theorem can be hard.
* in this file - there used to be over 350 of them, *everywhere*),
* and for the offensive globals. Applying the Structured Program
* Theorem can be hard.
@@
-308,11
+308,8
@@
bool spotted_by_pirate(int i)
game.dloc[PIRATE]=game.chloc;
game.odloc[PIRATE]=game.chloc;
game.dseen[PIRATE]=false;
game.dloc[PIRATE]=game.chloc;
game.odloc[PIRATE]=game.chloc;
game.dseen[PIRATE]=false;
- /* C doesn't have what the Structured rogramming
- * Theorem says we need here - multi-level loop
- * breakout. We simulate with a goto. Irreducible, alas.
- */
- return true; //goto jumpout;
+
+ return true;
}
if (HERE(j))
k=1;
}
if (HERE(j))
k=1;