Skip to content

Commit 4a7437c

Browse files
committed
-
1 parent 7bcbf4f commit 4a7437c

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/CarnageGame.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ bool CarnageGame::StartScenario(const std::string& mapName)
337337
currBlock->mGroundType == eGroundType_Pawement ||
338338
currBlock->mGroundType == eGroundType_Road)
339339
{
340-
pos[currFindPosIter++] = Convert::MapUnitsToMeters(glm::vec3(xBlock, zBlock, yBlock));
340+
pos[currFindPosIter++] = Convert::MapUnitsToMeters(glm::vec3(xBlock + 0.5f, zBlock, yBlock + 0.5f));
341341
break;
342342
}
343343
}

src/SpriteManager.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ void SpriteManager::DumpSpriteTextures(const std::string& outputLocation)
385385
cityStyle.GetSpriteTexture(sprite_index, &spriteBitmap, 0, 0);
386386

387387
// dump to file
388-
cxx::va("%s/%s_%d.png", outputLocation.c_str(), cxx::enum_to_string(sprite_type), iSpriteId);
388+
pathBuffer = cxx::va("%s/%s_%d.png", outputLocation.c_str(), cxx::enum_to_string(sprite_type), iSpriteId);
389389
if (!spriteBitmap.SaveToFile(pathBuffer))
390390
{
391391
debug_assert(false);
@@ -412,7 +412,7 @@ void SpriteManager::DumpCarsTextures(const std::string& outputLocation)
412412
cityStyle.GetSpriteTexture(sprite_index, &spriteBitmap, 0, 0);
413413

414414
// dump to file
415-
cxx::va("%s/%d-%s-%s.png", outputLocation.c_str(), currCar.mModelId,
415+
pathBuffer = cxx::va("%s/%d-%s-%s.png", outputLocation.c_str(), currCar.mModelId,
416416
cxx::enum_to_string(currCar.mModelId),
417417
cxx::enum_to_string(currCar.mVType));
418418

@@ -445,7 +445,7 @@ void SpriteManager::DumpSpriteDeltas(const std::string& outputLocation)
445445
}
446446

447447
// dump to file
448-
cxx::va("%s/sprite_%d_delta_%d.png", outputLocation.c_str(), isprite, idelta);
448+
pathBuffer = cxx::va("%s/sprite_%d_delta_%d.png", outputLocation.c_str(), isprite, idelta);
449449
if (!spriteBitmap.SaveToFile(pathBuffer))
450450
{
451451
debug_assert(false);
@@ -474,7 +474,7 @@ void SpriteManager::DumpSpriteDeltas(const std::string& outputLocation, int spri
474474
}
475475

476476
// dump to file
477-
cxx::va("%s/sprite_%d_delta_%d.png", outputLocation.c_str(), spriteIndex, idelta);
477+
pathBuffer = cxx::va("%s/sprite_%d_delta_%d.png", outputLocation.c_str(), spriteIndex, idelta);
478478
if (!spriteBitmap.SaveToFile(pathBuffer))
479479
{
480480
debug_assert(false);

0 commit comments

Comments
 (0)