In Window::update() an UpdateEventArgs is created like this passing the elapsed time into the constructor.
Code: Select all
UpdateEventArgs e(this,elapsed);
However the UpdateEventArgs object does noting with the extra parameter, resulting in the object not having a valid d_timeSinceLastFrame value.
Code: Select all
class CEGUIEXPORT UpdateEventArgs : public WindowEventArgs
{
public:
UpdateEventArgs(Window* window, float tslf):WindowEventArgs(window) {}
float d_timeSinceLastFrame; //!< Time since the last frame update
};
ta.