Menu

#523 demo_jump rewind does not work with QWD-files

3.0
closed-fixed
nobody
None
5
2018-08-01
2012-01-15
gronsaken
No

Trying to rewind demo playback does not work with QWD-files.
Found on git master: 00e4711d7b3bad0ecf26a5e4e642d75623ebb772

See attached file for suggestion of a solution.

Discussion

  • gronsaken

    gronsaken - 2012-01-15

    0001-Allow-demo-rewind-in-QWD-demos

     
  • JohnNy_cz

    JohnNy_cz - 2012-01-15

    Interesting, that's it? Nothing else is needed?

     
  • gronsaken

    gronsaken - 2012-01-16

    The actual problem is within CL_GetDemoMessage(void) where nextdemotime is used to determine if we are rewinding (cls.demotime < nextdemotime). The suggested patch will make sure that nextdemotime is updated for QWD-demos aswell as MVD-demos.

    This is the smallest change I could think of with the current layout. A better solution would probably be to set a flag within CL_Demo_Jump(...) where rewind is detected the first time. This way rewind detection (by comparing times) will only be performed in a single place and will work independent of the type of demo.

     
  • dimman

    dimman - 2013-12-03
    • Group: --> 3.0
     
  • meag

    meag - 2018-08-01
    • status: open --> closed-fixed
     
MongoDB Logo MongoDB