Fixed bug: DrawMapFogOfWar draws a row and column too much.
This commit is contained in:
parent
aa647e7f08
commit
31f2d31735
1 changed files with 2 additions and 2 deletions
|
@ -1521,7 +1521,7 @@ global void DrawMapFogOfWar(int x,int y)
|
|||
dy=TheUI.MapY;
|
||||
ey=TheUI.MapEndY;
|
||||
|
||||
while( dy<=ey ) {
|
||||
while( dy<ey ) {
|
||||
if( *redraw_row ) { // row must be redrawn
|
||||
#if NEW_MAPDRAW > 1
|
||||
(*redraw_row)--;
|
||||
|
@ -1531,7 +1531,7 @@ global void DrawMapFogOfWar(int x,int y)
|
|||
|
||||
sx=x+sy;
|
||||
dx=TheUI.MapX;
|
||||
while( dx<=ex ) {
|
||||
while( dx<ex ) {
|
||||
if( *redraw_tile ) {
|
||||
#if NEW_MAPDRAW > 1
|
||||
(*redraw_tile)--;
|
||||
|
|
Loading…
Add table
Reference in a new issue