From 925ed7491b5e782ecfcc00da558f1537e000bd86 Mon Sep 17 00:00:00 2001 From: Kp Date: Mon, 28 Jun 2021 03:37:50 +0000 Subject: [PATCH] Move netgame grant-powerup menu subfunction handling to event_handler --- similar/main/net_udp.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/similar/main/net_udp.cpp b/similar/main/net_udp.cpp index 06f93ba6d..020cffee4 100644 --- a/similar/main/net_udp.cpp +++ b/similar/main/net_udp.cpp @@ -3736,9 +3736,16 @@ struct grant_powerup_menu : grant_powerup_menu_items, newmenu { } virtual int subfunction_handler(const d_event &event) override; + virtual window_event_result event_handler(const d_event &event) override; }; int grant_powerup_menu::subfunction_handler(const d_event &event) +{ + (void)event; + return 0; +} + +window_event_result grant_powerup_menu::event_handler(const d_event &event) { switch (event.type) { @@ -3748,7 +3755,7 @@ int grant_powerup_menu::subfunction_handler(const d_event &event) default: break; } - return 0; + return newmenu::event_handler(event); } static void net_udp_set_grant_power()