Skip to content
Snippets Groups Projects
Commit 4de8ea35 authored by DarkGod's avatar DarkGod
Browse files

oops! nasty "run too fast = disappear" bug fixed

parent d5a8e923
No related branches found
No related tags found
No related merge requests found
......@@ -331,8 +331,8 @@ static int map_object_set_move_anim(lua_State *L)
obj->move_blur = lua_tonumber(L, 7); // defaults to 0
obj->move_twitch_dir = lua_tonumber(L, 8); // defaults to 0 (which is equivalent to up or 8)
obj->move_twitch = lua_tonumber(L, 9); // defaults to 0
obj->animdx = obj->animdx - ((float)obj->cur_x - obj->oldx);
obj->animdy = obj->animdy - ((float)obj->cur_y - obj->oldy);
// obj->animdx = obj->animdx - ((float)obj->cur_x - obj->oldx);
// obj->animdy = obj->animdy - ((float)obj->cur_y - obj->oldy);
return 0;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment