--- a/src/signs.cpp Tue Jul 29 07:51:55 2008 +0000
+++ b/src/signs.cpp Tue Jul 29 10:26:48 2008 +0000
@@ -24,7 +24,6 @@
#include "table/strings.h"
SignID _new_sign_id;
-bool _sign_sort_dirty;
/* Initialize the sign-pool */
DEFINE_OLD_POOL_GENERIC(Sign, Sign)
@@ -111,8 +110,7 @@
si->z = GetSlopeZ(x, y);
UpdateSignVirtCoords(si);
MarkSignDirty(si);
- InvalidateWindow(WC_SIGN_LIST, 0);
- _sign_sort_dirty = true;
+ InvalidateWindowData(WC_SIGN_LIST, 0, 0);
_new_sign_id = si->index;
}
@@ -148,8 +146,7 @@
MarkSignDirty(si);
UpdateSignVirtCoords(si);
MarkSignDirty(si);
- InvalidateWindow(WC_SIGN_LIST, 0);
- _sign_sort_dirty = true;
+ InvalidateWindowData(WC_SIGN_LIST, 0, 1);
}
} else { // Delete sign
if (flags & DC_EXEC) {
@@ -158,8 +155,7 @@
MarkSignDirty(si);
delete si;
- InvalidateWindow(WC_SIGN_LIST, 0);
- _sign_sort_dirty = true;
+ InvalidateWindowData(WC_SIGN_LIST, 0, 1);
}
}
@@ -242,8 +238,6 @@
Sign *si = new (index) Sign();
SlObject(si, _sign_desc);
}
-
- _sign_sort_dirty = true;
}
extern const ChunkHandler _sign_chunk_handlers[] = {