*
* Known contributors to this file:
* Dave Pare, 1989
- * Markus Armbruster, 2004-2011
+ * Markus Armbruster, 2004-2013
*/
#include <config.h>
return XYOFFSET(XNORM(x), YNORM(y));
}
+void sctoff2xy(coord *x, coord *y, int off)
+{
+ *y = off * 2 / WORLD_X;
+ *x = off * 2 % WORLD_X + *y % 2;
+}
+
coord
xnorm(coord x)
{