summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 758504b..a3ea478 100644
--- a/src/main.c
+++ b/src/main.c
@@ -132,9 +132,7 @@ int main()
printf("timeline: %i\n", ret);
- // TODO should be able to read 5 aswell, change readdemomap to fit
- if (dh.version >= 6)
- ret = readdemomap(fp, &dm, dh.mapsize);
+ ret = readdemomap(fp, &dm, dh.mapsize, dh.version);
printf("readdemomap ret: %d\n\n", ret);
demochunk dc;