summaryrefslogtreecommitdiff
path: root/libphysics/_map.c
diff options
context:
space:
mode:
Diffstat (limited to 'libphysics/_map.c')
-rw-r--r--libphysics/_map.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/libphysics/_map.c b/libphysics/_map.c
deleted file mode 100644
index 3057bf4..0000000
--- a/libphysics/_map.c
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <vecmath.h>
-#include <physics.h>
-
-#include <stdlib.h>
-#include <string.h>
-
-#include "dat.h"
-
-int *phxmapbuffer;
-int phxmapwidth, phxmapheight;
-
-void
-phxsetmap(int w, int h, int *tiles)
-{
- if(phxmapbuffer)
- free(phxmapbuffer);
-
- phxmapwidth = w;
- phxmapheight = h;
-
- phxmapbuffer = malloc(w * h * sizeof(phxmapbuffer[0]));
- memcpy(phxmapbuffer, tiles, sizeof(phxmapbuffer[0]) * w * h);
-}