Changeset 347


Ignore:
Timestamp:
Feb 4, 2011, 12:42:15 AM (10 years ago)
Author:
sam
Message:

Reduce error verbosity when entities are stuck at exit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ticker.cpp

    r342 r347  
    3232        nentities(0),
    3333        frame(0), deltams(0), bias(0),
    34         quit(0), quitframe(0), quitdelay(20)
     34        quit(0), quitframe(0), quitdelay(20), panic(0)
    3535    {
    3636        for (int i = 0; i < Entity::ALLGROUP_END; i++)
     
    6767
    6868    /* Shutdown management */
    69     int quit, quitframe, quitdelay;
     69    int quit, quitframe, quitdelay, panic;
    7070}
    7171tickerdata;
     
    169169        {
    170170#if !FINAL_RELEASE
    171             fprintf(stderr, "ERROR: %i entities stuck after %i frames\n",
    172                     data->nentities, data->quitdelay);
     171            if (!data->panic)
     172                fprintf(stderr, "ERROR: %i entities stuck after %i frames\n",
     173                        data->nentities, data->quitdelay);
     174            data->panic = 1;
    173175#endif
    174176            entity->ref--;
Note: See TracChangeset for help on using the changeset viewer.