Skip to content
Snippets Groups Projects
Commit 7208f34e authored by luigi budd's avatar luigi budd
Browse files

Update file lua_baselib.c

parent 20d02d35
No related branches found
No related tags found
2 merge requests!2655Drawflatfill gl fix,!2645Fix lock-on interpolation lag with Lua uses P_SpawnLockOn
...@@ -722,6 +722,12 @@ static int lib_pSpawnLockOn(lua_State *L) ...@@ -722,6 +722,12 @@ static int lib_pSpawnLockOn(lua_State *L)
visual->flags2 |= MF2_DONTDRAW; visual->flags2 |= MF2_DONTDRAW;
visual->drawonlyforplayer = player; // Hide it from the other player in splitscreen, and yourself when spectating visual->drawonlyforplayer = player; // Hide it from the other player in splitscreen, and yourself when spectating
P_SetMobjStateNF(visual, state); P_SetMobjStateNF(visual, state);
// This is also handled in P_SceneryThinker, but we want to set it here
// so we dont get any weird interp. lag as it properly scales -luigi budd
P_SetScale(visual, lockon->scale, false);
visual->destscale = lockon->destscale;
visual->old_scale = lockon->old_scale;
} }
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment