projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
rnd-19980825
[rocksndiamonds.git]
/
src
/
misc.c
diff --git
a/src/misc.c
b/src/misc.c
index b9127322837f809331da5a9450fa59356d47e5af..14007b7e3d20868f510911e8a4150e93060c864f 100644
(file)
--- 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;
+ }
+}