mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-25 04:41:03 +00:00
Fix two warnings. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@6410 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
fe05c5dcc1
commit
2a75137f79
1 changed files with 2 additions and 2 deletions
|
@ -5423,7 +5423,7 @@ static void Menu_RunInput_EntryRangeFloat_MovementArbitrary(MenuEntry_t *entry,
|
||||||
if (object->flags & EnforceIntervals)
|
if (object->flags & EnforceIntervals)
|
||||||
{
|
{
|
||||||
float const range = object->max - object->min;
|
float const range = object->max - object->min;
|
||||||
float const maxInterval = object->steps - 1;
|
float const maxInterval = (float)(object->steps - 1);
|
||||||
float const newValueIndex = rintf((newValue - object->min) * maxInterval / range);
|
float const newValueIndex = rintf((newValue - object->min) * maxInterval / range);
|
||||||
newValue = newValueIndex * range / maxInterval + object->min;
|
newValue = newValueIndex * range / maxInterval + object->min;
|
||||||
}
|
}
|
||||||
|
@ -5435,7 +5435,7 @@ static void Menu_RunInput_EntryRangeFloat_Movement(MenuEntry_t *entry, MenuRange
|
||||||
{
|
{
|
||||||
float const oldValue = *object->variable;
|
float const oldValue = *object->variable;
|
||||||
float const range = object->max - object->min;
|
float const range = object->max - object->min;
|
||||||
float const maxInterval = object->steps - 1;
|
float const maxInterval = (float)(object->steps - 1);
|
||||||
float newValueIndex = rintf((oldValue - object->min) * maxInterval / range);
|
float newValueIndex = rintf((oldValue - object->min) * maxInterval / range);
|
||||||
float const newValueProjected = newValueIndex * range / maxInterval + object->min;
|
float const newValueProjected = newValueIndex * range / maxInterval + object->min;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue