diff --git a/src/gl/render.c b/src/gl/render.c
index f68327a051e0572b51c0d0f428e737c330d868ff..28c5b86976ccb1cb97f6cf464698034798d88587 100644 (file)
--- a/src/gl/render.c
+++ b/src/gl/render.c
static int max_wall_height;
static int max_textures;
static image walp[256];
+static byte walswp[256];
static byte walani[256];
static image anip[ANIT][5];
static byte anic[ANIT];
R_gl_free_image(&horiz);
horiz = R_gl_loadimage(s);
}
+
+void R_switch_texture (int x, int y) {
+ assert(x >= 0 && x < FLDW);
+ assert(y >= 0 && y < FLDH);
+ fldb[y][x] = walswp[fldb[y][x]];
+}
+
+int R_get_swp (int n) {
+ assert(n >= 0 && n < 256);
+ return walswp[n];
+}