From a9f3d19aa3a1b5b3a8f2686767e7f366c1df4e25 Mon Sep 17 00:00:00 2001 From: driAn Date: Thu, 16 Mar 2006 15:48:44 +0000 Subject: [PATCH] fixed win compatibility problems git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@223 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/clientgame.cpp | 1 + source/src/weapon.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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));