From: havoc Date: Mon, 5 Aug 2002 19:18:15 +0000 (+0000) Subject: fix for double to float warning in MSVC X-Git-Tag: RELEASE_0_2_0_RC1~366 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=0bca19bfcf1b1d2a9165512b814b49e141f19a83;p=xonotic%2Fdarkplaces.git fix for double to float warning in MSVC git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2205 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cgame.c b/cgame.c index 98d9a16c..86da9a53 100644 --- a/cgame.c +++ b/cgame.c @@ -48,7 +48,7 @@ static localentity_t *entspawn(void) { int i, best; float bestfreetime; - bestfreetime = gametime + 100.0f; + bestfreetime = (float) (gametime + 100.0); best = -1; for (i = 0;i < MAX_LOCALENTITIES;i++) {