mirror of https://github.com/OpenTTD/OpenTTD
Codechange: strongly type EngineRenew
parent
b575d5b8e4
commit
7cc194e745
|
@ -15,14 +15,14 @@
|
||||||
#include "engine_type.h"
|
#include "engine_type.h"
|
||||||
#include "group_type.h"
|
#include "group_type.h"
|
||||||
|
|
||||||
typedef uint16_t EngineRenewID;
|
using EngineRenewID = PoolID<uint16_t, struct EngineRenewIDTag, 64000, 0xFFFF>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Memory pool for engine renew elements. DO NOT USE outside of engine.c. Is
|
* Memory pool for engine renew elements. DO NOT USE outside of engine.c. Is
|
||||||
* placed here so the only exception to this rule, the saveload code, can use
|
* placed here so the only exception to this rule, the saveload code, can use
|
||||||
* it.
|
* it.
|
||||||
*/
|
*/
|
||||||
typedef Pool<EngineRenew, EngineRenewID, 16, 64000> EngineRenewPool;
|
using EngineRenewPool = Pool<EngineRenew, EngineRenewID, 16, EngineRenewID::End().base()>;
|
||||||
extern EngineRenewPool _enginerenew_pool;
|
extern EngineRenewPool _enginerenew_pool;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue