1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-05 00:49:09 +02:00

* working pathfinder

* drawing paths
* new command "P X1 Y1 Z1 X2 Y2 Z2" - draws path between given points
* borders handling rewritten
* minor stuff
This commit is contained in:
Michał W. Urbańczyk
2007-08-17 17:42:21 +00:00
parent d708669a75
commit 7d704c7f02
18 changed files with 629 additions and 256 deletions

View File

@ -109,7 +109,7 @@ void CPlayerInterface::yourTurn()
}
if(LOCPLINT->adventureInt->scrollingLeft)
{
if(LOCPLINT->adventureInt->position.x>0)
if(LOCPLINT->adventureInt->position.x>-Woff)
{
LOCPLINT->adventureInt->position.x--;
LOCPLINT->adventureInt->updateScreen = true;
@ -117,7 +117,7 @@ void CPlayerInterface::yourTurn()
}
if(LOCPLINT->adventureInt->scrollingRight)
{
if(LOCPLINT->adventureInt->position.x<CGI->ac->map.width-19+8)
if(LOCPLINT->adventureInt->position.x<CGI->ac->map.width-19+4)
{
LOCPLINT->adventureInt->position.x++;
LOCPLINT->adventureInt->updateScreen = true;
@ -125,7 +125,7 @@ void CPlayerInterface::yourTurn()
}
if(LOCPLINT->adventureInt->scrollingUp)
{
if(LOCPLINT->adventureInt->position.y>0)
if(LOCPLINT->adventureInt->position.y>-Hoff)
{
LOCPLINT->adventureInt->position.y--;
LOCPLINT->adventureInt->updateScreen = true;
@ -133,7 +133,7 @@ void CPlayerInterface::yourTurn()
}
if(LOCPLINT->adventureInt->scrollingDown)
{
if(LOCPLINT->adventureInt->position.y<CGI->ac->map.height-18+8)
if(LOCPLINT->adventureInt->position.y<CGI->ac->map.height-18+4)
{
LOCPLINT->adventureInt->position.y++;
LOCPLINT->adventureInt->updateScreen = true;