diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index 92bd467f..7d85667e 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -150,6 +150,7 @@ dynent *newdynent() // create a new blank player or monster d->hasarmour = false; d->gunselect = GUN_PISTOL; d->onladder = false; + d->isphysent = false; spawnstate(d); return d; }; diff --git a/source/src/weapon.cpp b/source/src/weapon.cpp index 540e180d..b313293f 100644 --- a/source/src/weapon.cpp +++ b/source/src/weapon.cpp @@ -336,7 +336,7 @@ void throw_nade(dynent *d, vec &to, physent *p) }; }; -void *new_physent() +physent *new_physent() { physent *p = (physent *)gp()->alloc(sizeof(physent));