Increase vertical aiming precision

git-svn-id: https://svn.eduke32.com/eduke32@142 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2006-05-02 21:36:09 +00:00
parent 93dd018a61
commit 2f99dd111b
4 changed files with 18 additions and 6 deletions

View file

@ -660,6 +660,9 @@ const char *getexternaladdress(void)
char *host = "checkip.dyndns.org"; char *host = "checkip.dyndns.org";
char *req = "GET / HTTP/1.0\r\n\r\n"; char *req = "GET / HTTP/1.0\r\n\r\n";
if(ipaddr[0])
return(ipaddr);
#ifdef _WIN32 #ifdef _WIN32
WSADATA ws; WSADATA ws;
@ -668,6 +671,7 @@ const char *getexternaladdress(void)
return(0); return(0);
} }
#endif #endif
if ((h=gethostbyname(host)) == NULL) { if ((h=gethostbyname(host)) == NULL) {
initprintf("mmulti: gethostbyname() error in getexternaladdress() (%d)\n",h_errno); initprintf("mmulti: gethostbyname() error in getexternaladdress() (%d)\n",h_errno);
return(0); return(0);

View file

@ -7634,10 +7634,19 @@ void checkcommandline(int argc,char **argv)
j = 0; j = 0;
break; break;
} }
if((Bstrcmp(tmp,"192") == 0) || (Bstrcmp(tmp,"172") == 0)) else if(Bstrcmp(tmp,"192") == 0)
{ {
Bstrcpy(tmp,strtok(NULL,".")); Bstrcpy(tmp,strtok(NULL,"."));
if((Bstrcmp(tmp,"168") == 0) || (Bstrcmp(tmp,"16") == 0)) if(Bstrcmp(tmp,"168") == 0)
{
j = 0;
break;
}
}
else if(Bstrcmp(tmp,"172") == 0)
{
Bstrcpy(tmp,strtok(NULL,"."));
if(Bstrcmp(tmp,"16") == 0)
{ {
j = 0; j = 0;
break; break;
@ -9815,7 +9824,7 @@ FAKEHORIZONLY:
} }
if(p->aim_mode) if(p->aim_mode)
myhoriz += syn->horz>>1; myhoriz += syn->horz;
else else
{ {
if( myhoriz > 95 && myhoriz < 105) myhoriz = 100; if( myhoriz > 95 && myhoriz < 105) myhoriz = 100;

View file

@ -73,7 +73,7 @@ void CONTROL_GetMouseDelta(void)
*/ */
CONTROL_MouseAxes[0].analog = (x * (CONTROL_MouseSensitivity<<1)); CONTROL_MouseAxes[0].analog = (x * (CONTROL_MouseSensitivity<<1));
CONTROL_MouseAxes[1].analog = (y * (CONTROL_MouseSensitivity<<1))<<2; CONTROL_MouseAxes[1].analog = (y * (CONTROL_MouseSensitivity<<1))<<1;
} }
int32 CONTROL_GetMouseSensitivity(void) int32 CONTROL_GetMouseSensitivity(void)

View file

@ -2833,7 +2833,6 @@ void getinput(short snum)
else horiz = (info.dz+lastinfo.dz)/(314-128); else horiz = (info.dz+lastinfo.dz)/(314-128);
lastinfo.dz = (lastinfo.dz+info.dz) % (314-128); lastinfo.dz = (lastinfo.dz+info.dz) % (314-128);
if(horiz <= 0) horiz++;
info.dz = 0; info.dz = 0;
} else { } else {
lastinfo.dz = info.dz % (1<<6); lastinfo.dz = info.dz % (1<<6);
@ -4389,7 +4388,7 @@ HORIZONLY:
} }
if(p->aim_mode) if(p->aim_mode)
p->horiz += sync[snum].horz>>1; p->horiz += sync[snum].horz;
else else
{ {
if( p->horiz > 95 && p->horiz < 105) p->horiz = 100; if( p->horiz > 95 && p->horiz < 105) p->horiz = 100;