From cf6f3dfb946805da5286e697b0c6597b8e42713a Mon Sep 17 00:00:00 2001 From: Bukz Date: Sat, 9 Mar 2013 22:11:45 +0000 Subject: [PATCH] prevent accidental message submission, thanks SKB git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@7330 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- config/defaults.cfg | 2 +- source/src/console.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/defaults.cfg b/config/defaults.cfg index 55df96b1..0451e75f 100644 --- a/config/defaults.cfg +++ b/config/defaults.cfg @@ -27,7 +27,7 @@ survNumBots = 6 survBotsToAdd = 1 timeBetChkPts = 60000 timeUntilTele = 90000 -survMaxBots = 32 +survMaxBots = 20 spamSurvMsgs = 0 nonSurvDefaults = 0 survDamageEffects = 1 diff --git a/source/src/console.cpp b/source/src/console.cpp index ea3002d3..9312e8a7 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -549,6 +549,9 @@ void consolekey(int code, bool isdown, int cooked) { if(code==SDLK_RETURN || code==SDLK_KP_ENTER || code==SDL_AC_BUTTON_LEFT || code==SDL_AC_BUTTON_MIDDLE) { + // make laptop users happy; LMB shall only work with history + if(code == SDL_AC_BUTTON_LEFT && histpos == history.length()) return; + hline *h = NULL; if(cmdline.buf[0]) {