From 184e976c5d09d9f831df46d69e05416769cc8e61 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 6 Nov 2025 23:37:27 +0500 Subject: [PATCH] engine: call appropriate model loader on big endian --- engine/common/model.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/engine/common/model.c b/engine/common/model.c index 2afcb3bc..a67eaa44 100644 --- a/engine/common/model.c +++ b/engine/common/model.c @@ -296,18 +296,18 @@ model_t *Mod_LoadModel( model_t *mod, qboolean crash ) // call the apropriate loader switch( *(uint *)buf ) { - case IDSTUDIOHEADER: + case LittleLong( IDSTUDIOHEADER ): Mod_LoadStudioModel( mod, buf, &loaded ); break; - case IDSPRITEHEADER: + case LittleLong( IDSPRITEHEADER ): Mod_LoadSpriteModel( mod, buf, length, &loaded ); break; - case IDALIASHEADER: + case LittleLong( IDALIASHEADER ): Mod_LoadAliasModel( mod, buf, &loaded ); break; - case Q1BSP_VERSION: - case HLBSP_VERSION: - case QBSP2_VERSION: + case LittleLong( Q1BSP_VERSION ): + case LittleLong( HLBSP_VERSION ): + case LittleLong( QBSP2_VERSION ): Mod_LoadBrushModel( mod, buf, &loaded ); break; default: