Revision: 1477
          http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1477&view=rev
Author:   rorthomas
Date:     2010-07-20 13:21:08 +0000 (Tue, 20 Jul 2010)

Log Message:
-----------
fixed some linux compiler warnings, thanks to bauerj

Modified Paths:
--------------
    trunk/source/main/Beam.cpp

Modified: trunk/source/main/Beam.cpp
===================================================================
--- trunk/source/main/Beam.cpp  2010-07-20 09:33:12 UTC (rev 1476)
+++ trunk/source/main/Beam.cpp  2010-07-20 13:21:08 UTC (rev 1477)
@@ -2081,7 +2081,7 @@
                                                        e.smokeNode = 
parent->createChildSceneNode();
                                                        //ParticleSystemManager 
*pSysM=ParticleSystemManager::getSingletonPtr();
                                                        char wname[256];
-                                                       sprintf(wname, 
"exhaust-%d-%s", exhausts.size(), truckname);
+                                                       sprintf(wname, 
"exhaust-%d-%s", (int)exhausts.size(), truckname);
                                                        //if (pSysM) 
smoker=pSysM->createSystem(wname, "tracks/Smoke");
                                                        
e.smoker=manager->createParticleSystem(wname, "tracks/Smoke");
                                                        // ParticleSystem* pSys 
= ParticleSystemManager::getSingleton().createSystem("exhaust", "tracks/Smoke");
@@ -2109,7 +2109,7 @@
                                                        e.smokeNode = 
parent->createChildSceneNode();
                                                        //ParticleSystemManager 
*pSysM=ParticleSystemManager::getSingletonPtr();
                                                        char wname[256];
-                                                       sprintf(wname, 
"exhaust-%d-%s", exhausts.size(), truckname);
+                                                       sprintf(wname, 
"exhaust-%d-%s", (int)exhausts.size(), truckname);
                                                        //if (pSysM) 
smoker=pSysM->createSystem(wname, "tracks/Smoke");
                                                        
e.smoker=manager->createParticleSystem(wname, "tracks/Smoke");
                                                        // ParticleSystem* pSys 
= ParticleSystemManager::getSingleton().createSystem("exhaust", "tracks/Smoke");
@@ -4167,7 +4167,7 @@
                        e.isOldFormat = false;
                        e.smokeNode = parent->createChildSceneNode();
                        char wname[256];
-                       sprintf(wname, "exhaust-%d-%s", exhausts.size(), 
truckname);
+                       sprintf(wname, "exhaust-%d-%s", (int)exhausts.size(), 
truckname);
                        if(strnlen(material,50) == 0 || String(material) == 
"default")
                                strcpy(material, "tracks/Smoke");
 


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Rigsofrods-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rigsofrods-devel

Reply via email to