// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include <config.h>
+#include <math.h>
#include "lisp/writer.hpp"
#include "lisp/lisp.hpp"
#include "player_status.hpp"
static int displayed_coins = -1;
static int next_count = 0;
- if (displayed_coins == -1) displayed_coins = coins;
+ if ((displayed_coins == -1) || (fabsf(displayed_coins - coins) > 100)) {
+ displayed_coins = coins;
+ }
if (++next_count > 2) {
next_count = 0;
if (displayed_coins < coins) displayed_coins++;