events.c: fix tiny XEvIE thinko

Make sure xeviehot gets updated after the ConfineToShape() call.
This commit is contained in:
Daniel Stone 2006-08-17 21:24:07 +03:00 committed by Daniel Stone
parent 5d082f0563
commit 7da51447ea

View File

@ -2016,13 +2016,13 @@ CheckMotion(xEvent *xE)
sprite.hot.y = sprite.physLimits.y1;
else if (sprite.hot.y >= sprite.physLimits.y2)
sprite.hot.y = sprite.physLimits.y2 - 1;
#ifdef XEVIE
xeviehot.x = sprite.hot.x;
xeviehot.y = sprite.hot.y;
#endif
#ifdef SHAPE
if (sprite.hotShape)
ConfineToShape(sprite.hotShape, &sprite.hot.x, &sprite.hot.y);
#endif
#ifdef XEVIE
xeviehot.x = sprite.hot.x;
xeviehot.y = sprite.hot.y;
#endif
sprite.hotPhys = sprite.hot;
if ((sprite.hotPhys.x != XE_KBPTR.rootX) ||