Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Richard Gobeille
EDuke32
Commits
446930d1
Commit
446930d1
authored
Feb 07, 2022
by
Richard Gobeille
Browse files
Duke3d: disallow drawing frames between EVENT_PREGAME iterations
parent
695a58af
Changes
1
Hide whitespace changes
Inline
Side-by-side
source/duke3d/src/actors.cpp
View file @
446930d1
...
...
@@ -9215,7 +9215,7 @@ static void G_RecordOldSpritePos(void)
while
(
statNum
<
MAXSTATUS
);
}
static
void
G_DoEventGame
(
int
const
nEventID
)
static
void
G_DoEventGame
(
int
const
nEventID
,
bool
const
allowDrawing
=
true
)
{
if
(
!
VM_HaveEvent
(
nEventID
))
return
;
...
...
@@ -9231,7 +9231,9 @@ static void G_DoEventGame(int const nEventID)
int32_t
playerDist
;
int
const
playerNum
=
A_FindPlayer
(
&
sprite
[
spriteNum
],
&
playerDist
);
VM_ExecuteEvent
(
nEventID
,
spriteNum
,
playerNum
,
playerDist
);
dukeMaybeDrawFrame
();
if
(
allowDrawing
)
dukeMaybeDrawFrame
();
}
}
while
(
statNum
<
MAXSTATUS
);
...
...
@@ -9247,7 +9249,7 @@ void G_MoveWorld(void)
MICROPROFILE_SCOPEI
(
"Game"
,
"MoveWorld"
,
MP_YELLOW
);
VM_OnEvent
(
EVENT_PREWORLD
);
G_DoEventGame
(
EVENT_PREGAME
);
G_DoEventGame
(
EVENT_PREGAME
,
false
);
G_RecordOldSpritePos
();
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment