forked from mirror/OpenTTD
Codechange: Replace assert_compile macro with static_assert
This commit is contained in:
@@ -188,7 +188,7 @@ static void StartSound(SoundID sound_id, float pan, uint volume)
|
||||
|
||||
|
||||
static const byte _vol_factor_by_zoom[] = {255, 255, 255, 190, 134, 87};
|
||||
assert_compile(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_COUNT);
|
||||
static_assert(lengthof(_vol_factor_by_zoom) == ZOOM_LVL_COUNT);
|
||||
|
||||
static const byte _sound_base_vol[] = {
|
||||
128, 90, 128, 128, 128, 128, 128, 128,
|
||||
|
Reference in New Issue
Block a user