Ignore:
Timestamp:
Aug 14, 2010, 11:15:37 PM (11 years ago)
Author:
sam
Message:

Do not tick destroyed objects.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/ticker.cpp

    r101 r104  
    7676    for (int i = 0; i < Asset::GROUP_COUNT; i++)
    7777        for (Asset *a = data->list[i]; a; a = a->next)
    78             a->TickGame(delta_time);
     78            if (!a->destroy)
     79                a->TickGame(delta_time);
    7980}
    8081
     
    8485    for (int i = 0; i < Asset::GROUP_COUNT; i++)
    8586        for (Asset *a = data->list[i]; a; a = a->next)
    86             a->TickRender(delta_time);
     87            if (!a->destroy)
     88                a->TickRender(delta_time);
    8789}
    8890
Note: See TracChangeset for help on using the changeset viewer.