DEADSOFTWARE

fixed keyboard polling (no more); ESC should work in several places where it should...
[d2df-sdl.git] / src / game / g_netmaster.pas
index 9e96a451f43f07326a693a2b78775945899ad2ea..14970abb766180a382834ccf10bf0b61c042305c 100644 (file)
@@ -505,13 +505,15 @@ begin
 end;
 
 procedure g_Serverlist_Control(var SL: TNetServerList);
+var
+  qm: Boolean;
 begin
   if gConsoleShow or gChatShow then
     Exit;
 
-  e_PollInput();
+  qm := g_ProcessMessages(); // this updates kbd
 
-  if e_KeyPressed(IK_ESCAPE) then
+  if qm or e_KeyPressed(IK_ESCAPE) then
   begin
     SL := nil;
     gState := STATE_MENU;