Bump minimum supported SOL version
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 9 Apr 2011 17:42:49 +0000 (17:42 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sat, 9 Apr 2011 17:42:49 +0000 (17:42 +0000)
Fixes crashes. Compatibility would be preferable, but unlikely.

git-svn-id: https://s.snth.net/svn/neverball/branches/gles@3569 78b8d119-cf0a-0410-b17c-f493084dd1d7

share/solid_base.c

index aae2d16..5cdc5a4 100644 (file)
@@ -25,9 +25,8 @@
 
 enum
 {
-    SOL_VER_MINIMUM = 6,
-    SOL_VER_PATH_FLAGS,
-    SOL_VER_CURRENT = SOL_VER_PATH_FLAGS
+    SOL_VER_MINIMUM = 7,
+    SOL_VER_CURRENT = SOL_VER_MINIMUM
 };
 
 #define SOL_MAGIC (0xAF | 'S' << 8 | 'O' << 16 | 'L' << 24)
@@ -135,8 +134,7 @@ static void sol_load_path(fs_file fin, struct b_path *pp)
     pp->tm = TIME_TO_MS(pp->t);
     pp->t  = MS_TO_TIME(pp->tm);
 
-    if (sol_version >= SOL_VER_PATH_FLAGS)
-        get_index(fin, &pp->fl);
+    get_index(fin, &pp->fl);
 
     pp->e[0] = 1.0f;
     pp->e[1] = 0.0f;