|
|
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: https://www.fltk.org/str.php?L3522
Version: -current
For some oscure reasons
@ row 834 in file blocks.cxx must be inserted:
Fl::remove_timeout((Fl_Timeout_Handler)timeout_cb, (void *)this);
before
Fl::repeat_timeout(interval_, (Fl_Timeout_Handler)timeout_cb, (void
*)this);
otherwise on "play again" the previous timeout value will be used though
the interval_ variable is set correctly.
It's just a demo game, I know, but there's something weird about that
timeout callback that I can't understand.
Ciao.
Edo
Link: https://www.fltk.org/str.php?L3522
Version: -current
[ Direct Link to Message ] | |
|
| |