Mercurial > hg > openttd
changeset 4400:102cdd3fe55b draft
(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.
author | truelight <truelight@openttd.org> |
---|---|
date | Sat, 26 Aug 2006 19:29:35 +0000 |
parents | d48acb507f63 |
children | 3e07d834e228 |
files | signs.c signs.h |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/signs.c +++ b/signs.c @@ -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