mirror of
https://github.com/glest/glest-source.git
synced 2025-02-24 19:52:25 +01:00
cpp check warnings cleanup
This commit is contained in:
parent
3671bd0617
commit
cc21dbbc5c
@ -3528,7 +3528,7 @@ int handleCreateDataArchivesCommand(int argc, char** argv) {
|
||||
vector<string> results2;
|
||||
findDirs(techPath + name + "/factions", results2, false,true);
|
||||
if(results2.empty() == false) {
|
||||
string downloadArchive = techPath + name + ".7z";
|
||||
string downloadArchive = techPath + name + fileArchiveExtension;
|
||||
|
||||
//printf("Test downloadArchive [%s]\n",downloadArchive.c_str());
|
||||
|
||||
@ -3577,7 +3577,7 @@ int handleCreateDataArchivesCommand(int argc, char** argv) {
|
||||
endPathWithSlash(tilesetPath);
|
||||
}
|
||||
if(fileExists(tilesetPath + name + "/" + name + ".xml") == true) {
|
||||
string downloadArchive = tilesetPath + name + ".7z";
|
||||
string downloadArchive = tilesetPath + name + fileArchiveExtension;
|
||||
|
||||
//printf("Test downloadArchive [%s]\n",downloadArchive.c_str());
|
||||
|
||||
|
@ -318,7 +318,6 @@ void FactionThread::execute() {
|
||||
break;
|
||||
}
|
||||
|
||||
codeLocation = "4";
|
||||
static string mutexOwnerId = string(__FILE__) + string("_") + intToStr(__LINE__);
|
||||
MutexSafeWrapper safeMutex(triggerIdMutex,mutexOwnerId);
|
||||
bool executeTask = (this->frameIndex.first >= 0);
|
||||
@ -400,7 +399,7 @@ void FactionThread::execute() {
|
||||
if(world->getUnitUpdater() == NULL) {
|
||||
throw megaglest_runtime_error("world->getUnitUpdater() == NULL");
|
||||
}
|
||||
codeLocation = "14";
|
||||
|
||||
world->getUnitUpdater()->updateUnitCommand(unit,currentTriggeredFrameIndex);
|
||||
|
||||
codeLocation = "15";
|
||||
|
Loading…
x
Reference in New Issue
Block a user