X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fmisc.c;h=14007b7e3d20868f510911e8a4150e93060c864f;hb=e1e1f0e96140865d39f667f6af11ebec5e8c9cad;hp=b9127322837f809331da5a9450fa59356d47e5af;hpb=b7d31643c9c84104fb3ebef778e545928610ff65;p=rocksndiamonds.git diff --git a/src/misc.c b/src/misc.c index b9127322..14007b7e 100644 --- a/src/misc.c +++ b/src/misc.c @@ -167,3 +167,16 @@ char *GetLoginName() else return(pwd->pw_name); } + +void MarkTileDirty(int x, int y) +{ + int xx = redraw_x1 + x; + int yy = redraw_y1 + y; + + if (!redraw[xx][yy]) + { + redraw[xx][yy] = TRUE; + redraw_tiles++; + redraw_mask |= REDRAW_TILES; + } +}