refresh screen after debug message

Fixes #7492
The bug can be easily reproduced by added `debugmsg("foo");` to `trapfunc::bubble(int x, int y)` - every time you step onto bubble wrap it shows the debug message. After skipping it by pressing space, the whole window is erased and black until the next move.