game/scenes/mainmenu: Merge menu_connect_cancel() if statements
@@ -71,11 +71,10 @@ void menu_connect_cancel(component *c, void *userdata) {
menu *m = sizer_get_obj(c->parent);
connect_menu_data *local = menu_get_userdata(c->parent);
- if(local->connect_start) {
- if(difftime(time(NULL), local->connect_start) < 0.1) {
+ if(local->connect_start &&
+ difftime(time(NULL), local->connect_start) < 0.1) {
return;
}
- }
// Finish menu
m->finished = 1;
