mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Removed obsolete todo.
This commit is contained in:
@@ -611,7 +611,6 @@ void CTerrainRect::showPath(const SDL_Rect * extRect)
|
|||||||
int pn=-1;//number of picture
|
int pn=-1;//number of picture
|
||||||
if (i==0) //last tile
|
if (i==0) //last tile
|
||||||
{
|
{
|
||||||
// TODO: use right variable instead of (7,6). Twice in this function.
|
|
||||||
int x = 32*(currentPath->nodes[i].coord.x-LOCPLINT->adventureInt->position.x)+CGI->mh->offsetX + pos.x,
|
int x = 32*(currentPath->nodes[i].coord.x-LOCPLINT->adventureInt->position.x)+CGI->mh->offsetX + pos.x,
|
||||||
y = 32*(currentPath->nodes[i].coord.y-LOCPLINT->adventureInt->position.y)+CGI->mh->offsetY + pos.y;
|
y = 32*(currentPath->nodes[i].coord.y-LOCPLINT->adventureInt->position.y)+CGI->mh->offsetY + pos.y;
|
||||||
if (x<0 || y<0 || x>pos.w || y>pos.h)
|
if (x<0 || y<0 || x>pos.w || y>pos.h)
|
||||||
|
Reference in New Issue
Block a user