Codefix: Prefer static inline const keyword order. (#14301)
This commit is contained in:
@@ -183,7 +183,7 @@ public:
|
||||
* @param orig_age Age of the original link graph.
|
||||
* @return scaled value.
|
||||
*/
|
||||
inline static uint Scale(uint val, TimerGameEconomy::Date target_age, TimerGameEconomy::Date orig_age)
|
||||
static inline uint Scale(uint val, TimerGameEconomy::Date target_age, TimerGameEconomy::Date orig_age)
|
||||
{
|
||||
return val > 0 ? std::max(1U, val * target_age.base() / orig_age.base()) : 0;
|
||||
}
|
||||
|
||||
@@ -299,7 +299,7 @@ public:
|
||||
* @param total Total capacity.
|
||||
* @return free * 16 / max(total, 1).
|
||||
*/
|
||||
inline static int GetCapacityRatio(int free, uint total)
|
||||
static inline int GetCapacityRatio(int free, uint total)
|
||||
{
|
||||
return Clamp(free, PATH_CAP_MIN_FREE, PATH_CAP_MAX_FREE) * PATH_CAP_MULTIPLIER / std::max(total, 1U);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user