diff --git a/source/src/clientgame.cpp b/source/src/clientgame.cpp index e4d30407..6c7b3c90 100644 --- a/source/src/clientgame.cpp +++ b/source/src/clientgame.cpp @@ -299,7 +299,7 @@ int fixspawn = 2; // returns -2 for a free place, else dist to the nearest enemy float nearestenemy(vec place, char *team) { - int nearestenemydist = -1; + float nearestenemydist = -1; loopv(players) { playerent *other = players[i]; diff --git a/source/src/console.cpp b/source/src/console.cpp index cab1bca2..631ba5d1 100644 --- a/source/src/console.cpp +++ b/source/src/console.cpp @@ -1,7 +1,6 @@ // console.cpp: the console buffer, its display, and command line control #include "cube.h" -#include struct cline { char *cref; int outtime; }; vector conlines;