From 453c1f9649f9d0fedbd591018af1eacff11a1b39 Mon Sep 17 00:00:00 2001 From: terminx Date: Fri, 17 Nov 2006 08:22:52 +0000 Subject: [PATCH] Blar git-svn-id: https://svn.eduke32.com/eduke32@343 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/build/src/sdlayer.c | 16 ---------------- polymer/eduke32/source/game.c | 16 ++++++++-------- 2 files changed, 8 insertions(+), 24 deletions(-) diff --git a/polymer/build/src/sdlayer.c b/polymer/build/src/sdlayer.c index bcbea40db..9eaa5eca8 100644 --- a/polymer/build/src/sdlayer.c +++ b/polymer/build/src/sdlayer.c @@ -1417,24 +1417,8 @@ int handleevents(void) case SDL_MOUSEMOTION: if (appactive) { - static int relx = 0; - static int rely = 0; - - if (SDL_PeepEvents(NULL, 1, SDL_PEEKEVENT, SDL_MOUSEMOTIONMASK)) - { - /* ignore the current event, a newer one is waiting */ - relx += ev.motion.xrel; - rely += ev.motion.yrel; - } - else - { - ev.motion.xrel += relx; - ev.motion.yrel += rely; mousex += ev.motion.xrel; mousey += ev.motion.yrel; - relx = 0; - rely = 0; - } } break; diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index de1259ee5..b04a845ba 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -8234,7 +8234,7 @@ int load_rancid_net(char *fn) char *ip; if (scriptfile_getstring(script,&ip)) break; - Bstrcpy(rancid_ip_strings[MAXPLAYERS],ip); + Bstrcpy(rancid_ip_strings[MAXPLAYERS-1],ip); Bstrcpy(rancid_ip_strings[rancid_players++],ip); strtok(ip,":"); Bsprintf(tempbuf,"%s",strtok(NULL,":")); @@ -8416,7 +8416,7 @@ void checkcommandline(int argc,char **argv) { for (j=0;j