1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-12 03:00:28 +00:00
freebsd-ports/games/openarena/files/patch-code__unix__linux_glimp.c
Alejandro Pulver a67f63f67f OpenArena is an open-source content package for Quake III Arena licensed under
the GPL, effectively creating a free stand-alone game. You do not need Quake
III Arena to play this game.

Bots were added starting in 0.6.0. They will spout taunts and everything!

Concepts would be loose, so don't expect a remake of Klesk in his original
Klesk form, or any direct remakes of any map/weapon/model.

WWW: http://openarena.ws/

PR:		ports/115072
Submitted by:	Josh Tolbert <hemi at puresimplicity.net>
2007-09-06 03:50:23 +00:00

20 lines
520 B
C

--- ./code/unix/linux_glimp.c.orig Sun Apr 30 11:32:56 2006
+++ ./code/unix/linux_glimp.c Sun Jun 11 17:26:26 2006
@@ -631,8 +631,14 @@
dx = ((int)event.xmotion.x - mwx);
dy = ((int)event.xmotion.y - mwy);
- mx += dx;
- my += dy;
+ if (abs(dx) > 1)
+ mx += dx * 2;
+ else
+ mx += dx;
+ if (abs(dy) > 1)
+ my += dy * 2;
+ else
+ my += dy;
mwx = event.xmotion.x;
mwy = event.xmotion.y;