diff --git a/src/map.c b/src/map.c
index 7071dd4fe5fd0dcc6583e7a6f89b4a7afc6a8a76..ab154e2b17555c03cf8718cac5b7d70492c37ddd 100644 (file)
--- a/src/map.c
+++ b/src/map.c
+/* Copyright (C) 1996-1997 Aleksey Volynskov
+ * Copyright (C) 2011 Rambo
+ * Copyright (C) 2020 SovietPony
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 3 of the License ONLY.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
+
#include "map.h"
#include "game.h"
#include <string.h>
#include "my.h"
#include "error.h"
+#include "cp866.h"
enum {
MB_COMMENT = -1, MB_END = 0,
myfread(s, 8, 1, h);
walf[i] = myfread8(h) ? 1 : 0; // ???
R_load(s);
- if (strncasecmp(s, "VTRAP01", 8) == 0) {
+ if (cp866_strncasecmp(s, "VTRAP01", 8) == 0) {
walf[i] |= 2;
}
}