Add whether the vehicle is non-front to the vehicle pool pointer tag

Add iteration filters which check this
This commit is contained in:
Jonathan G Rennison
2024-02-25 14:49:31 +00:00
parent 05e237f8d1
commit 93bf033107
23 changed files with 145 additions and 81 deletions

View File

@@ -117,12 +117,17 @@ struct Pool : PoolBase {
Pool(const char *name);
void CleanPool() override;
inline PtrType GetRaw(size_t index)
inline PtrType &GetRawRef(size_t index)
{
dbg_assert_msg(index < this->first_unused, "index: " PRINTF_SIZE ", first_unused: " PRINTF_SIZE ", name: %s", index, this->first_unused, this->name);
return this->data[index];
}
inline PtrType GetRaw(size_t index)
{
return this->GetRawRef(index);
}
/**
* Returns Titem with given index
* @param index of item to get