fixed problem where bottom row of pixels on screen wasn't drawn on
This commit is contained in:
parent
78df98d752
commit
89398e74e8
1 changed files with 2 additions and 2 deletions
|
@ -955,10 +955,10 @@ void display::draw_tile(int x, int y, SDL_Surface* unit_image,
|
|||
}
|
||||
|
||||
if(xend >= mapx())
|
||||
xend = mapx()-1;
|
||||
xend = mapx();
|
||||
|
||||
if(yend >= this->y())
|
||||
yend = this->y()-1;
|
||||
yend = this->y();
|
||||
|
||||
if(xend < xpos || yend < ypos)
|
||||
return;
|
||||
|
|
Loading…
Add table
Reference in a new issue