From 42454e722a9a5f66e3405c11bea24ae71bfc49a5 Mon Sep 17 00:00:00 2001 From: truelight Date: Sat, 26 Aug 2006 19:29:35 +0000 Subject: (svn r6153) -Codechange: DeleteSign removes a sign from the pool -Codechange: DestroySign is called by DeleteSign to remove all things where a sign depends on. Last 2 changes to prepare for new pool system. Not pretty now, will be soon. --- signs.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'signs.c') diff --git a/signs.c b/signs.c index d507ffe4c..f6d796d52 100644 --- a/signs.c +++ b/signs.c @@ -103,7 +103,13 @@ static Sign *AllocateSign(void) 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 -- cgit v1.2.3-54-g00ecf