#include <direct.h>
#endif
+#include <limits>
#include <ctime>
#include "Game.h"
#include "openal_wrapper.h"
static int find_closest()
{
int closest = 0;
- float closestdist = 1.0/0.0;
+ float closestdist = std::numeric_limits<float>::max();
for (int i = 1; i < numplayers; i++) {
float distance;
stealthloading=0;
whichlevel=which;
- if (which == -1) {
+ if(which == -1){
tutoriallevel = -1;
Loadlevel("tutorial");
- } else if (which >= 0 && which <= 15) {
+ }else if(which >= 0 && which <= 15){
char buf[32];
snprintf(buf, 32, "map%d", which + 1);
Loadlevel(buf);
- } else
+ }else
Loadlevel("mapsave");
}