From 71ae32e430bcde74c4082b15b034bbb34aff526d Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 1 Jan 2006 15:10:01 +0000 Subject: [PATCH] fix sp2 frame positioning git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5887 d7cf8633-e32d-0410-b094-e92efae38249 --- model_sprite.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/model_sprite.c b/model_sprite.c index 9db05a57..367d9e9e 100644 --- a/model_sprite.c +++ b/model_sprite.c @@ -367,8 +367,10 @@ void Mod_IDS2_Load(model_t *mod, void *buffer, void *bufferend) sprframe = &loadmodel->sprite.sprdata_frames[i]; - sprframe->left = origin[0]; - sprframe->right = origin[0] + width; + // note that sp2 origin[0] is positive, where as it is negative in + // spr/spr32/hlspr + sprframe->left = -origin[0]; + sprframe->right = -origin[0] + width; sprframe->up = origin[1]; sprframe->down = origin[1] - height; -- 2.39.2