Revision: 1424
http://rigsofrods.svn.sourceforge.net/rigsofrods/?rev=1424&view=rev
Author: rorthomas
Date: 2010-07-05 14:34:52 +0000 (Mon, 05 Jul 2010)
Log Message:
-----------
%zu causes crash under windows
Modified Paths:
--------------
trunk/source/main/Beam.cpp
Modified: trunk/source/main/Beam.cpp
===================================================================
--- trunk/source/main/Beam.cpp 2010-06-29 19:23:46 UTC (rev 1423)
+++ trunk/source/main/Beam.cpp 2010-07-05 14:34:52 UTC (rev 1424)
@@ -2080,7 +2080,7 @@
e.smokeNode =
parent->createChildSceneNode();
//ParticleSystemManager
*pSysM=ParticleSystemManager::getSingletonPtr();
char wname[256];
- sprintf(wname,
"exhaust-%zu-%s", exhausts.size(), truckname);
+ sprintf(wname,
"exhaust-%d-%s", 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");
@@ -2108,7 +2108,7 @@
e.smokeNode =
parent->createChildSceneNode();
//ParticleSystemManager
*pSysM=ParticleSystemManager::getSingletonPtr();
char wname[256];
- sprintf(wname,
"exhaust-%zu-%s", exhausts.size(), truckname);
+ sprintf(wname,
"exhaust-%d-%s", 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");
@@ -4166,7 +4166,7 @@
e.isOldFormat = false;
e.smokeNode = parent->createChildSceneNode();
char wname[256];
- sprintf(wname, "exhaust-%zu-%s", exhausts.size(),
truckname);
+ sprintf(wname, "exhaust-%d-%s", 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