projects
/
xonotic
/
xonotic-data.pk3dir.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
015b17d
)
Physics now still run if game hasn't started yet
author
z411 <z411@omaera.org>
Mon, 7 Sep 2020 22:25:53 +0000
(19:25 -0300)
committer
z411 <z411@omaera.org>
Mon, 7 Sep 2020 22:25:53 +0000
(19:25 -0300)
qcsrc/ecs/systems/sv_physics.qc
patch
|
blob
|
history
diff --git
a/qcsrc/ecs/systems/sv_physics.qc
b/qcsrc/ecs/systems/sv_physics.qc
index 175c57c4844de5206959de1031ad4adff23577fa..1d5553d1d1084b50be15cec4287a17905ac6d28a 100644
(file)
--- a/
qcsrc/ecs/systems/sv_physics.qc
+++ b/
qcsrc/ecs/systems/sv_physics.qc
@@
-40,7
+40,9
@@
void sys_phys_ai(entity this)
void sys_phys_pregame_hold(entity this)
{
if (!IS_PLAYER(this)) { return; }
- const bool allowed_to_move = (time >= game_starttime && !game_stopped);
+ // z411
+ //const bool allowed_to_move = (time >= game_starttime && !game_stopped);
+ const bool allowed_to_move = (!game_stopped);
if (!allowed_to_move) {
this.velocity = '0 0 0';
set_movetype(this, MOVETYPE_NONE);