From 3f214b59cc9fe8ff09a894468c3a033fb287e473 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Sun, 16 Jul 2023 22:11:07 -0400 Subject: [PATCH] another half life mip fix --- common/imglib.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/imglib.cc b/common/imglib.cc index aec33786..dc6484fe 100644 --- a/common/imglib.cc +++ b/common/imglib.cc @@ -220,7 +220,7 @@ std::optional load_mip( if (game->id == GAME_HALF_LIFE) { bool valid_mip_palette = true; - int32_t mip3_size = (header.width >> 3) + (header.height >> 3); + int32_t mip3_size = (header.width >> 3) * (header.height >> 3); size_t palette_size = sizeof(uint16_t) + (sizeof(qvec3b) * 256); if (header.offsets[3] <= 0) {