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
NY00123
EDuke32-CSRefactor
Commits
5f16a9a6
Commit
5f16a9a6
authored
May 22, 2020
by
NY00123
Committed by
Evan Ramos
May 22, 2020
Browse files
SW: Remove FAKETIMERHANDLER and calls to faketimerhandler via this macro
parent
0f0cc936
Changes
4
Hide whitespace changes
Inline
Side-by-side
source/sw/src/game.h
View file @
5f16a9a6
...
...
@@ -2226,7 +2226,6 @@ extern int lockspeed,totalsynctics;
#define synctics 3
#define ACTORMOVETICS (synctics<<1)
#define TICSPERMOVEMENT synctics
#define FAKETIMERHANDLER() if (totalclock >= ototalclock + synctics) faketimerhandler()
// subtract value from clipdist on getzrange calls
#define GETZRANGE_CLIP_ADJ 8
...
...
source/sw/src/player.cpp
View file @
5f16a9a6
...
...
@@ -8080,12 +8080,8 @@ domovethings(void)
JS_ProcessEchoSpot
();
}
FAKETIMERHANDLER
();
SpriteControl
();
FAKETIMERHANDLER
();
TRAVERSE_CONNECT
(
pnum
)
{
extern
short
screenpeek
;
...
...
@@ -8115,8 +8111,6 @@ domovethings(void)
#endif
}
FAKETIMERHANDLER
();
// do for moving sectors
DoPlayerSectorUpdatePreMove
(
pp
);
ChopsCheck
(
pp
);
...
...
source/sw/src/sector.cpp
View file @
5f16a9a6
...
...
@@ -3184,7 +3184,6 @@ void movelava(char *dapic)
for (x = LAVASIZ - 1; x >= 0; x--)
{
FAKETIMERHANDLER();
offs = (x + 1) * (LAVASIZ + 2) + 1;
ptr = (char *)((x << LAVALOGSIZ) + (intptr_t) dapic);
...
...
source/sw/src/sprite.cpp
View file @
5f16a9a6
...
...
@@ -6778,8 +6778,6 @@ SpriteControl(void)
#endif
}
FAKETIMERHANDLER
();
// Items and skip2 things
if
(
MoveSkip2
==
0
)
{
...
...
@@ -6802,8 +6800,6 @@ SpriteControl(void)
}
}
FAKETIMERHANDLER
();
if
(
MoveSkip2
==
0
)
// limit to 20 times a second
{
// move bad guys around
...
...
@@ -6858,9 +6854,6 @@ SpriteControl(void)
}
}
FAKETIMERHANDLER
();
// Skip4 things
if
(
MoveSkip4
==
0
)
// limit to 10 times a second
{
...
...
@@ -6883,8 +6876,6 @@ SpriteControl(void)
}
}
FAKETIMERHANDLER
();
TRAVERSE_SPRITE_STAT
(
headspritestat
[
STAT_NO_STATE
],
i
,
nexti
)
{
if
(
User
[
i
]
&&
User
[
i
]
->
ActorActionFunc
)
...
...
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