summaryrefslogtreecommitdiff
path: root/src/client/GameSave.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-12-06 17:34:32 (GMT)
committer jacob1 <jfu614@gmail.com>2012-12-06 17:34:32 (GMT)
commite5a284a2bafd1e48525b3b3c4fbfe2464cce7c68 (patch)
tree0402ab1a3a03d8b6f90826318eb1416fb3ee5155 /src/client/GameSave.cpp
parent122599763ef9827d7aadc0fe0295c2fbc96e82ab (diff)
downloadpowder-e5a284a2bafd1e48525b3b3c4fbfe2464cce7c68.zip
powder-e5a284a2bafd1e48525b3b3c4fbfe2464cce7c68.tar.gz
fix compiling warnings / error
Diffstat (limited to 'src/client/GameSave.cpp')
-rw-r--r--src/client/GameSave.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp
index 1751c54..a4d654f 100644
--- a/src/client/GameSave.cpp
+++ b/src/client/GameSave.cpp
@@ -259,9 +259,9 @@ void GameSave::setSize(int newWidth, int newHeight)
blockMapPtr = new unsigned char[blockHeight*blockWidth];
std::fill(blockMapPtr, blockMapPtr+(blockHeight*blockWidth), 0);
fanVelXPtr = new float[(blockHeight)*(blockWidth)];
- std::fill(fanVelXPtr, fanVelXPtr+((blockHeight)*(blockWidth)), 0);
+ std::fill(fanVelXPtr, fanVelXPtr+((blockHeight)*(blockWidth)), 0.0f);
fanVelYPtr = new float[(blockHeight)*(blockWidth)];
- std::fill(fanVelYPtr, fanVelYPtr+((blockHeight)*(blockWidth)), 0);
+ std::fill(fanVelYPtr, fanVelYPtr+((blockHeight)*(blockWidth)), 0.0f);
blockMap = new unsigned char*[blockHeight];
for(int y = 0; y < blockHeight; y++)
@@ -330,9 +330,9 @@ void GameSave::Transform(matrix2d transform, vector2d translate)
blockMapPtrNew = new unsigned char[newBlockHeight*newBlockWidth];
std::fill(blockMapPtrNew, blockMapPtrNew+(newBlockHeight*newBlockWidth), 0);
fanVelXPtrNew = new float[newBlockHeight*newBlockWidth];
- std::fill(fanVelXPtrNew, fanVelXPtrNew+(newBlockHeight*newBlockWidth), 0);
+ std::fill(fanVelXPtrNew, fanVelXPtrNew+(newBlockHeight*newBlockWidth), 0.0f);
fanVelYPtrNew = new float[(newBlockHeight)*(newBlockWidth)];
- std::fill(fanVelYPtrNew, fanVelYPtrNew+(newBlockHeight*newBlockWidth), 0);
+ std::fill(fanVelYPtrNew, fanVelYPtrNew+(newBlockHeight*newBlockWidth), 0.0f);
blockMapNew = new unsigned char*[newBlockHeight];
for(int y = 0; y < newBlockHeight; y++)