Refactor the game event loop and add menus to the Linux build
Patch from @x-qq Addresses #195
This commit is contained in:
@@ -128,7 +128,7 @@ bool handle_startup_press(location the_point) {
|
||||
}
|
||||
|
||||
void handle_splash_events() {
|
||||
extern sf::Event event;
|
||||
sf::Event event;
|
||||
if(!mainPtr.pollEvent(event)) return;
|
||||
if(event.type == sf::Event::GainedFocus || event.type == sf::Event::MouseMoved)
|
||||
set_cursor(sword_curs);
|
||||
|
Reference in New Issue
Block a user