summaryrefslogtreecommitdiff
path: root/games/cube/patches/patch-ab
diff options
context:
space:
mode:
authorpeter <peter>2005-01-18 17:48:52 +0000
committerpeter <peter>2005-01-18 17:48:52 +0000
commit408c6db7940384f6a2aaae83a121e0f52d58ab0b (patch)
tree4e9e7fb97cfb789cbc3b555844abd56217d91b06 /games/cube/patches/patch-ab
parentb785450918a15decd59b4d20f243f03098dae8b9 (diff)
downloadpkgsrc-408c6db7940384f6a2aaae83a121e0f52d58ab0b.tar.gz
Initial import of cube-20040522 into the NetBSD Packages Collection.
Cube is an open source multiplayer and singleplayer first person shooter game built on an entirely new and very unconventional engine. Cube is a landscape-style engine that pretends to be an indoor FPS engine, which combines very high precision dynamic occlusion culling with a form of geometric mipmapping on the whole world for dynamic LOD for configurable fps & graphic detail on most machines. Uses OpenGL & SDL. Allows in-engine editing of geometry in full 3D (you fly around the map, point / drag stuff to select it / modify it), which can even be done simultaneously with others in multiplayer (a first!). Has simplistic but effective fine grain vertex lighting that looks like lightmapping and can do dynamic lights & shadows. Doesn't need any kind of map precompilation, even lighting is done on the fly. Has very simplistic quad-tree world structure that can do slopes (heightfields with caps) and slants, water, does decent collision detection & physics, has client/server networking that goes a long way in giving a lag-free game experience, and features a Doom/Quake-style singleplayer (2 game modes, savegames) and multiplayer (12 game modes, master server / server browser, demo recording) game with some uncompromising brutal oldskool gameplay.
Diffstat (limited to 'games/cube/patches/patch-ab')
-rw-r--r--games/cube/patches/patch-ab21
1 files changed, 21 insertions, 0 deletions
diff --git a/games/cube/patches/patch-ab b/games/cube/patches/patch-ab
new file mode 100644
index 00000000000..884015f611b
--- /dev/null
+++ b/games/cube/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1.1.1 2005/01/18 17:48:53 peter Exp $
+
+--- source/src/main.cpp.orig 2004-05-22 18:00:26.000000000 +0200
++++ source/src/main.cpp 2004-06-10 01:28:17.000000000 +0200
+@@ -1,6 +1,7 @@
+ // main.cpp: initialisation & main loop
+
+ #include "cube.h"
++#include <unistd.h>
+
+ void cleanup(char *msg) // single program exit point;
+ {
+@@ -104,6 +105,8 @@
+ #define log(s) puts("init: " s)
+ log("sdl");
+
++ ::chdir(DATADIR);
++
+ for(int i = 1; i<argc; i++)
+ {
+ char *a = &argv[i][2];