aboutsummaryrefslogtreecommitdiff
path: root/bts.c
diff options
context:
space:
mode:
Diffstat (limited to 'bts.c')
-rw-r--r--bts.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/bts.c b/bts.c
index b6c02f9..09df498 100644
--- a/bts.c
+++ b/bts.c
@@ -49,7 +49,12 @@ fromboard(Board *b, Point2 p)
Point2
toboard(Board *b, Point p)
{
- return rframexform(rframexform(Pt2(p.x,p.y,1), worldrf), *b);
+ Point2 np;
+
+ np = rframexform(rframexform(Pt2(p.x,p.y,1), worldrf), *b);
+ np.x = (int)np.x;
+ np.y = (int)np.y;
+ return np;
}
Image *