fixed problem where bottom row of pixels on screen wasn't drawn on

This commit is contained in:
Dave White 2003-11-25 23:57:05 +00:00
parent 78df98d752
commit 89398e74e8

View file

@ -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;