Fix tilemap offset.

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1861 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2011-11-08 23:59:14 +00:00
parent 82860387bc
commit 6965b6f464

View File

@ -144,8 +144,8 @@ void Tilemap_draw(word x, word y, byte color)
return;
tile = first_tile = TILE_FOR_COORDS(x,y);
rel_x = (x + Snap_offset_X + Snap_width) % Snap_width;
rel_y = (y + Snap_offset_Y + Snap_height) % Snap_height;
rel_x = (x - Snap_offset_X + Snap_width) % Snap_width;
rel_y = (y - Snap_offset_Y + Snap_height) % Snap_height;
do
{
int xx,yy;