aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/alan3/checkentry.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/glk/alan3/checkentry.cpp')
-rw-r--r--engines/glk/alan3/checkentry.cpp35
1 files changed, 17 insertions, 18 deletions
diff --git a/engines/glk/alan3/checkentry.cpp b/engines/glk/alan3/checkentry.cpp
index 51a839cbd6..6a49128d71 100644
--- a/engines/glk/alan3/checkentry.cpp
+++ b/engines/glk/alan3/checkentry.cpp
@@ -29,24 +29,23 @@ namespace Glk {
namespace Alan3 {
/*======================================================================*/
-bool checksFailed(Aaddr adr, bool execute)
-{
- CheckEntry *chk = (CheckEntry *) pointerTo(adr);
- if (chk->exp == 0) {
- if (execute == EXECUTE_CHECK_BODY_ON_FAIL)
- interpret(chk->stms);
- return TRUE;
- } else {
- while (!isEndOfArray(chk)) {
- if (!evaluate(chk->exp)) {
- if (execute == EXECUTE_CHECK_BODY_ON_FAIL)
- interpret(chk->stms);
- return TRUE;
- }
- chk++;
- }
- return FALSE;
- }
+bool checksFailed(Aaddr adr, bool execute) {
+ CheckEntry *chk = (CheckEntry *) pointerTo(adr);
+ if (chk->exp == 0) {
+ if (execute == EXECUTE_CHECK_BODY_ON_FAIL)
+ interpret(chk->stms);
+ return TRUE;
+ } else {
+ while (!isEndOfArray(chk)) {
+ if (!evaluate(chk->exp)) {
+ if (execute == EXECUTE_CHECK_BODY_ON_FAIL)
+ interpret(chk->stms);
+ return TRUE;
+ }
+ chk++;
+ }
+ return FALSE;
+ }
}
} // End of namespace Alan3