summaryrefslogtreecommitdiff
path: root/src/map.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 14:43:06 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-17 14:43:06 +0000
commitd9593657605b2e286b478718c89bcbe7cd341c43 (patch)
tree5936a2597db64ad53b578a7026bdc4982a061182 /src/map.cpp
parent888df2befd4d87d94b33bae8ca0deca67499cbe0 (diff)
downloadmana-d9593657605b2e286b478718c89bcbe7cd341c43.tar.gz
mana-d9593657605b2e286b478718c89bcbe7cd341c43.tar.bz2
mana-d9593657605b2e286b478718c89bcbe7cd341c43.tar.xz
mana-d9593657605b2e286b478718c89bcbe7cd341c43.zip
No longer use Allegro to store map files.
Diffstat (limited to 'src/map.cpp')
-rw-r--r--src/map.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map.cpp b/src/map.cpp
index c5049418..a958b2e6 100644
--- a/src/map.cpp
+++ b/src/map.cpp
@@ -36,13 +36,13 @@
MAP tiled_map;
bool load_map(char *map_file) {
- PACKFILE *file = pack_fopen(map_file, "rp");
+ FILE *file = fopen(map_file, "r");
if (!file) {
warning(map_file);
return false;
}
- pack_fread(&tiled_map, sizeof(MAP), file);
- pack_fclose(file);
+ fread(&tiled_map, sizeof(MAP), 1, file);
+ fclose(file);
return true;
}