repositories
/
mc1516pa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
200ca4d
)
xy exists helper
author
Alexander Fedotov
<soyaxhoya@gmail.com>
Mon, 11 Apr 2016 11:56:00 +0000
(12:56 +0100)
committer
Alexander Fedotov
<soyaxhoya@gmail.com>
Mon, 11 Apr 2016 11:56:00 +0000
(12:56 +0100)
modelchecker/coord.c
patch
|
blob
|
history
diff --git
a/modelchecker/coord.c
b/modelchecker/coord.c
index
9d8b2fa
..
be9d36d
100644
(file)
--- a/
modelchecker/coord.c
+++ b/
modelchecker/coord.c
@@
-157,6
+157,13
@@
bimap *create_bimap_helper(sokoban_screen *screen)
return bm;
}
+int check_xy_exists(int x, int y, bimap *bm)
+{
+ int res = 0;
+ if (getxy(x, y, bm->f) != NULL) res = 1;
+ return res;
+}
+
/*
* Each coordinate has three related boolean variables. The combination of those boolean variables
* defines tiles: