--- a/signs.c Sat Aug 26 19:18:50 2006 +0000
+++ b/signs.c Sat Aug 26 19:29:35 2006 +0000
@@ -103,7 +103,13 @@
return NULL;
}
-/** Place a sign at the given coordinates. Ownership of sign has
+void DestroySign(Sign *si)
+{
+ DeleteName(si->str);
+}
+
+/**
+ * Place a sign at the given coordinates. Ownership of sign has
* no effect whatsoever except for the colour the sign gets for easy recognition,
* but everybody is able to rename/remove it.
* @param tile tile to place sign at
--- a/signs.h Sat Aug 26 19:18:50 2006 +0000
+++ b/signs.h Sat Aug 26 19:29:35 2006 +0000
@@ -57,9 +57,11 @@
return index < GetSignPoolSize() && IsValidSign(GetSign(index));
}
+void DestroySign(Sign *si);
+
static inline void DeleteSign(Sign *si)
{
- DeleteName(si->str);
+ DestroySign(si);
si->str = STR_NULL;
}