Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2007, 5:04:07 AM (16 years ago)
Author:
landauf
Message:
  • added very bad collision detection (presentation hack :D)
  • added explosions
  • fixed bug in ParticleInterface (it tried to delete SceneManager)

AND:

  • fixed one of the most amazing bugs ever! (the game crashed when I deleted an object through a timer-function. because the timer-functions is called by an iterator, the iterator indirectly delted its object. by overloading the (it++) operator, i was able to solve this problem)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/objects/Tickable.h

    r640 r646  
    4646            {
    4747                // Iterate through all Tickables and call their tick(dt) function
    48                 for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; ++it)
    49                     it->tick(evt.timeSinceLastFrame);
     48                for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; )
     49                    (it++)->tick(evt.timeSinceLastFrame);
    5050
    5151                return FrameListener::frameStarted(evt);
Note: See TracChangeset for help on using the changeset viewer.