X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=model.h;h=f9ec815dfc78a42f63b0b1e4cdb323c81be96920;hb=1a40e653040837e47a4aba82d6b9f9800901fd64;hp=6ff0a857eaf9d036b1fa050511844ddeb0790fe3;hpb=4c673ebccdd6d12e2eb6c2804b79602da98ea8b1;p=carveJwlIkooP6JGAAIwe30JlM.git diff --git a/model.h b/model.h index 6ff0a85..f9ec815 100644 --- a/model.h +++ b/model.h @@ -7,7 +7,8 @@ #include "skaterift.h" -#define MDL_VERSION_NR 101 +#define MDL_VERSION_MIN 101 +#define MDL_VERSION_NR 102 enum mdl_shader { @@ -414,10 +415,10 @@ VG_STATIC void mdl_open( mdl_context *mdl, const char *path, void *lin_alloc ) if( l != 1 ) mdl_load_fatal_corrupt( mdl ); - if( mdl->info.version < MDL_VERSION_NR ){ + if( mdl->info.version < MDL_VERSION_MIN ){ vg_warn( "For model: %s\n", path ); - vg_warn( " version: %u (current: %u)\n", mdl->info.version, - MDL_VERSION_NR ); + vg_warn( " version: %u (min: %u, current: %u)\n", + mdl->info.version, MDL_VERSION_MIN, MDL_VERSION_NR ); vg_fatal_error( "Legacy model version incompatable" ); }