plugins trade talk_value for talk_value_decimal

talk_value is just talk_value_decimal with 0 decimals

lets add the extended function instead

static inline int talk_val(long n, int unit, bool enqueue)
{
    #define NODECIMALS 0
    return rb->talk_value_decimal(n, unit, NODECIMALS, enqueue);
}

Change-Id: Iaba3d2f95785f2e1855e294ccf099a977bb6cb20
This commit is contained in:
William Wilgus 2021-08-18 01:23:26 -04:00 committed by William Wilgus
parent 4cbb5b4201
commit 24e8fa317e
6 changed files with 24 additions and 13 deletions

View file

@ -37,7 +37,7 @@ static void xingupdate(int percent)
long now = *(rb->current_tick) / HZ;
if (now - last_talk >= 5)
{
rb->talk_value(percent, UNIT_PERCENT, false);
rb->talk_value_decimal(percent, UNIT_PERCENT, 0, false);
last_talk = now;
}
}