- cleaned up compiler warnings in g3d viewer

- added a bunch of new lua commands for 'da boys' to be documented after being fully tested.
This commit is contained in:
Mark Vejvoda
2011-01-29 12:42:18 +00:00
parent 95daf86ce2
commit 1a3545f8ab
8 changed files with 318 additions and 16 deletions

View File

@@ -199,7 +199,7 @@ MainWindow::MainWindow( std::pair<string,vector<string> > unitToLoad,
if(modelPath != "") {
this->modelPathList.push_back(modelPath);
printf("Startup Adding model [%s] list size %d\n",modelPath.c_str(),this->modelPathList.size());
printf("Startup Adding model [%s] list size %lu\n",modelPath.c_str(),this->modelPathList.size());
}
if(particlePath != "") {
this->particlePathList.push_back(particlePath);
@@ -924,14 +924,14 @@ void MainWindow::loadModel(string path) {
try {
if(path != "" && fileExists(path) == true) {
this->modelPathList.push_back(path);
printf("Adding model [%s] list size %d\n",path.c_str(),this->modelPathList.size());
printf("Adding model [%s] list size %lu\n",path.c_str(),this->modelPathList.size());
}
string titlestring=winHeader;
for(unsigned int idx =0; idx < this->modelPathList.size(); idx++) {
string modelPath = this->modelPathList[idx];
printf("Loading model [%s] %d of %d\n",modelPath.c_str(),idx, this->modelPathList.size());
printf("Loading model [%s] %u of %lu\n",modelPath.c_str(),idx, this->modelPathList.size());
timer->Stop();
delete model;