/*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
SDL_mutexV(medalServer.lock);
- delete tname;
+ delete[] tname;
return type;
}
// Copy the input, so that threading
// doesn't trip us up!
char *data = new char[128];
- strncpy(data, tname, sizeof data);
+ strlcpy(data, tname, 128);
SDL_Thread *thread = SDL_CreateThread(medalWorker, (void*)data);
}
}
- #if !USEPAK
+ #if DEBUG
if (engine.keyState[SDLK_1])
player.currentWeapon = &weapon[WP_PISTOL];
else if (engine.keyState[SDLK_2])