OpenTTD Source 20241224-master-gee860a5c8e
|
Handling of signs. More...
#include "stdafx.h"
#include "landscape.h"
#include "company_func.h"
#include "signs_base.h"
#include "signs_func.h"
#include "strings_func.h"
#include "core/pool_func.hpp"
#include "viewport_kdtree.h"
#include "table/strings.h"
#include "safeguards.h"
Go to the source code of this file.
Functions | |
void | UpdateAllSignVirtCoords () |
Update the coordinates of all signs. | |
bool | CompanyCanRenameSign (const Sign *si) |
Check if the current company can rename a given sign. | |
Variables | |
SignPool | _sign_pool ("Sign") |
Initialize the sign-pool. | |
Handling of signs.
Definition in file signs.cpp.
bool CompanyCanRenameSign | ( | const Sign * | si | ) |
Check if the current company can rename a given sign.
*si | The sign in question. |
Definition at line 71 of file signs.cpp.
References _current_company, and OWNER_DEITY.
Referenced by CmdRenameSign(), and HandleClickOnSign().
void UpdateAllSignVirtCoords | ( | ) |
Update the coordinates of all signs.
Definition at line 59 of file signs.cpp.
References Pool< Titem, Tindex, Tgrowth_step, Tmax_size, Tpool_type, Tcache, Tzero >::PoolItem<&_sign_pool >::Iterate().
Referenced by UpdateAllVirtCoords().