From 1b947c7b07714669e0c8bff96089b49e5a673082 Mon Sep 17 00:00:00 2001 From: Plagman Date: Tue, 21 Jun 2016 05:31:54 +0000 Subject: [PATCH] nice nice good stuff git-svn-id: https://svn.eduke32.com/eduke32@5805 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/mdsprite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/polymer/eduke32/build/src/mdsprite.c b/polymer/eduke32/build/src/mdsprite.c index 19995c81f..2ee9bfb22 100644 --- a/polymer/eduke32/build/src/mdsprite.c +++ b/polymer/eduke32/build/src/mdsprite.c @@ -1707,9 +1707,9 @@ static void md3postload_common(md3model_t *m) if (!verti && !surfi) continue; - frame->min.x = max(frame->min.x, f.x); - frame->min.y = max(frame->min.y, f.y); - frame->min.z = max(frame->min.z, f.z); + frame->min.x = min(frame->min.x, f.x); + frame->min.y = min(frame->min.y, f.y); + frame->min.z = min(frame->min.z, f.z); frame->max.x = max(frame->max.x, f.x); frame->max.y = max(frame->max.y, f.y); frame->max.z = max(frame->max.z, f.z);