Pushing code fix.
This commit is contained in:
parent
72de423bba
commit
fc519c54b0
|
@ -556,14 +556,16 @@ static int pushEntity(Entity *e, float dx, float dy)
|
||||||
PointF position;
|
PointF position;
|
||||||
Entity *oldSelf;
|
Entity *oldSelf;
|
||||||
|
|
||||||
oldSelf = self;
|
|
||||||
|
|
||||||
expectedX = e->x + dx;
|
expectedX = e->x + dx;
|
||||||
expectedY = e->y + dy;
|
expectedY = e->y + dy;
|
||||||
|
|
||||||
position.x = e->x;
|
position.x = e->x;
|
||||||
position.y = e->y;
|
position.y = e->y;
|
||||||
|
|
||||||
|
oldSelf = self;
|
||||||
|
|
||||||
|
self = e;
|
||||||
|
|
||||||
if (dx != 0)
|
if (dx != 0)
|
||||||
{
|
{
|
||||||
position.x += dx;
|
position.x += dx;
|
||||||
|
@ -780,8 +782,6 @@ void activateEntities(char *nameList, int active)
|
||||||
|
|
||||||
oldSelf = self;
|
oldSelf = self;
|
||||||
|
|
||||||
SDL_LogMessage(SDL_LOG_CATEGORY_APPLICATION, SDL_LOG_PRIORITY_DEBUG, "Activating '%s'", names);
|
|
||||||
|
|
||||||
name = strtok(names, "|");
|
name = strtok(names, "|");
|
||||||
|
|
||||||
while (name)
|
while (name)
|
||||||
|
|
Loading…
Reference in New Issue