Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
7208f34e
Commit
7208f34e
authored
6 months ago
by
luigi budd
Browse files
Options
Downloads
Patches
Plain Diff
Update file lua_baselib.c
parent
20d02d35
No related branches found
No related tags found
2 merge requests
!2655
Drawflatfill gl fix
,
!2645
Fix lock-on interpolation lag with Lua uses P_SpawnLockOn
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua_baselib.c
+6
-0
6 additions, 0 deletions
src/lua_baselib.c
with
6 additions
and
0 deletions
src/lua_baselib.c
+
6
−
0
View file @
7208f34e
...
@@ -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
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment