Fix tilemap offset.
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1861 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
82860387bc
commit
6965b6f464
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user