git » fp-git.git » commit 1f51ac6

relative offset bugfix

author ecalot
2004-08-30 15:01:08 UTC
committer ecalot
2004-08-30 15:01:08 UTC
parent b3408c8837b014729d91df4fca8aa976fcfb801c

relative offset bugfix

FP/src/res/resources.c +1 -1

diff --git a/FP/src/res/resources.c b/FP/src/res/resources.c
index c5a9090..52b4f5e 100644
--- a/FP/src/res/resources.c
+++ b/FP/src/res/resources.c
@@ -219,7 +219,7 @@ tData* resLoad(long id) {
 
 				/* get the offsets to move the image */
 				if (pal.colors==16) {/* available only for 16 colors images */
-					getOffsets(&down,&left,&right,from+2,has_D,has_L,has_R,result->frames,total);
+					getOffsets(&down,&left,&right,from-2,has_D,has_L,has_R,result->frames,total);
 				} else {
 					down=left=right=0;
 				}