Fix viewport signs and text effects marking viewports dirty unnecessarily
* When at high zoom levels where the signs are not shown * Where the sign type is disabled in the display options
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include "viewport_type.h"
|
||||
#include "core/pool_type.hpp"
|
||||
#include "company_type.h"
|
||||
#include "company_func.h"
|
||||
|
||||
typedef Pool<Sign, SignID, 16, 64000> SignPool;
|
||||
extern SignPool _sign_pool;
|
||||
@@ -29,6 +30,11 @@ struct Sign : SignPool::PoolItem<&_sign_pool> {
|
||||
Sign(Owner owner = INVALID_OWNER);
|
||||
~Sign();
|
||||
|
||||
bool IsCompetitorOwned() const
|
||||
{
|
||||
return _local_company != this->owner && this->owner != OWNER_DEITY;
|
||||
}
|
||||
|
||||
void UpdateVirtCoord();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user