Skip to content

Instantly share code, notes, and snippets.

@iqualfragile
iqualfragile / mumblepositionalaudio.diff
Created November 4, 2014 17:49
Adds mumble positional audio to minetest
diff --git a/src/game.cpp b/src/game.cpp
index b4bce33..06483e4 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -70,6 +70,12 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "util/pointedthing.h"
#include "drawscene.h"
#include "content_cao.h"
+// shared memory
+#include <sys/mman.h>
#!/bin/bash
# adapt these to local environment
PARALLEL=/home/minetest/building/parallel-20140822/src/parallel
MAPPER=/home/minetest/minetest/util/minetestmapper
WORLDPATH=/home/minetest/minetest/worlds/newworld/
TILEPATH=/var/www/mineguild.de/mt/leafletmap/tiles
PNGCRUSH="/home/minetest/local/bin/pngcrush -q -w 512 -brute"
#MAPSIZE*TILESIZE= max/min xy reached
MAPSIZE=8