(svn r12346) -Fix [FS#1748, FS#1825](r9874, r11872): Remove duplicated and inconsistent code wrt. autoreplace with rules in both vehicles' group and ALL_GROUP.
/* $Id$ *//** @file signs.h */#ifndef SIGNS_H#define SIGNS_H#include"oldpool.h"structSign;DECLARE_OLD_POOL(Sign,Sign,2,16000)structSign:PoolItem<Sign,SignID,&_Sign_pool>{char*name;ViewportSignsign;int32x;int32y;bytez;PlayerByteowner;// placed by this player. Anyone can delete them though. OWNER_NONE for gray signs from old games./** * Creates a new sign */Sign(PlayerIDowner=INVALID_PLAYER);/** Destroy the sign */~Sign();inlineboolIsValid()const{returnthis->owner!=INVALID_PLAYER;}};enum{INVALID_SIGN=0xFFFF,};externSignID_new_sign_id;staticinlineSignIDGetMaxSignIndex(){/* TODO - This isn't the real content of the function, but * with the new pool-system this will be replaced with one that * _really_ returns the highest index. Now it just returns * the next safe value we are sure about everything is below. */returnGetSignPoolSize()-1;}staticinlineuintGetNumSigns(){externuint_total_signs;return_total_signs;}staticinlineboolIsValidSignID(uintindex){returnindex<GetSignPoolSize()&&GetSign(index)->IsValid();}#define FOR_ALL_SIGNS_FROM(ss, start) for (ss = GetSign(start); ss != NULL; ss = (ss->index + 1U < GetSignPoolSize()) ? GetSign(ss->index + 1U) : NULL) if (ss->IsValid())#define FOR_ALL_SIGNS(ss) FOR_ALL_SIGNS_FROM(ss, 0)externbool_sign_sort_dirty;voidUpdateAllSignVirtCoords();voidPlaceProc_Sign(TileIndextile);/* signs_gui.cpp */voidShowRenameSignWindow(constSign*si);voidShowSignList();#endif /* SIGNS_H */