hedgewars/hwengine.pas
changeset 8948 c8a6f789398d
parent 8924 13ac59499066
child 9028 3a38c9453697
equal deleted inserted replaced
8947:e906ebd59612 8948:c8a6f789398d
   218                     if GameState <> gsChat then
   218                     if GameState <> gsChat then
   219                         ProcessKey(event.key);
   219                         ProcessKey(event.key);
   220 
   220 
   221                 SDL_MOUSEBUTTONDOWN:
   221                 SDL_MOUSEBUTTONDOWN:
   222                     if GameState = gsConfirm then
   222                     if GameState = gsConfirm then
   223                     begin
   223                         ParseCommand('quit', true)
   224                         resetPosition();
       
   225                         ParseCommand('quit', true);
       
   226                     end
       
   227                     else
   224                     else
   228                         ProcessMouse(event.button, true);
   225                         ProcessMouse(event.button, true);
   229 
   226 
   230                 SDL_MOUSEBUTTONUP:
   227                 SDL_MOUSEBUTTONUP:
   231                     ProcessMouse(event.button, false);
   228                     ProcessMouse(event.button, false);