X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cgame.c;h=ad162bc14c9a2eccfd52afc4b4e07f9386549236;hb=5a0fb4633e091c222a11fb6b2fd9c00f9af4717a;hp=98d9a16cf6921756ec498bf32cbdb690de1ceb01;hpb=c1bca25ad7aace521aa36e1c0f663e45fce1ce6d;p=xonotic%2Fdarkplaces.git diff --git a/cgame.c b/cgame.c index 98d9a16c..ad162bc1 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++) { @@ -72,7 +72,7 @@ static localentity_t *entspawn(void) static void entremove(localentity_t *e) { int i; - i = (e - localentity) / sizeof(localentity_t); + i = (int)((e - localentity) / sizeof(localentity_t)); if (i < 0 || i >= MAX_LOCALENTITIES) return; // this should be an error //memset(e, 0, sizeof(*e));