1289 |
scrollpos[1] + gamearea.h/tileh/2); |
scrollpos[1] + gamearea.h/tileh/2); |
1290 |
destpos[0] = int(destpos[0]*tilew)/tilew; |
destpos[0] = int(destpos[0]*tilew)/tilew; |
1291 |
destpos[1] = int(destpos[1]*tileh)/tileh; |
destpos[1] = int(destpos[1]*tileh)/tileh; |
1292 |
destpos[0] = max(0, min((int) destpos[0], |
destpos[0] = Clamp ((int)destpos[0], 0, engine->get_width()-gamearea.w/tilew); |
1293 |
engine->get_width()-gamearea.w/tilew)); |
destpos[1] = Clamp ((int)destpos[1], 0, engine->get_height()-gamearea.h/tileh); |
|
destpos[1] = max(0, min((int) destpos[1], |
|
|
engine->get_height()-gamearea.h/tileh)); |
|
1294 |
if (!scrollx_p) |
if (!scrollx_p) |
1295 |
destpos[0] = olddest[0]; //ScrollX; |
destpos[0] = olddest[0]; //ScrollX; |
1296 |
if (!scrolly_p) |
if (!scrolly_p) |