summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/GameSave.cpp5
-rw-r--r--src/client/GameSave.h4
2 files changed, 4 insertions, 5 deletions
diff --git a/src/client/GameSave.cpp b/src/client/GameSave.cpp
index d2b163e..ed742b0 100644
--- a/src/client/GameSave.cpp
+++ b/src/client/GameSave.cpp
@@ -47,8 +47,8 @@ void GameSave::setSize(int newWidth, int newHeight)
this->height = (newHeight/CELL)*CELL;
particles = new Particle[NPART];
- blockMap = new char*[height/CELL];
- blockMapPtr = new char[(height/CELL)*(width/CELL)];
+ blockMap = new unsigned char*[height/CELL];
+ blockMapPtr = new unsigned char[(height/CELL)*(width/CELL)];
fill(blockMapPtr, blockMapPtr+((height/CELL)*(width/CELL)), 0);
for(int y = 0; y < height/CELL; y++)
blockMap[y] = &blockMapPtr[y*(width/CELL)];
@@ -658,7 +658,6 @@ GameSave::ParseResult GameSave::readPSv(char * data, int dataLength)
p++;
continue;
}
-
blockMap[y][x] = d[p];
if (blockMap[y][x]==1)
blockMap[y][x]=WL_WALL;
diff --git a/src/client/GameSave.h b/src/client/GameSave.h
index ccf3690..0c50405 100644
--- a/src/client/GameSave.h
+++ b/src/client/GameSave.h
@@ -23,7 +23,7 @@ public:
//int ** particleMap;
int particlesCount;
Particle * particles;
- char ** blockMap;
+ unsigned char ** blockMap;
float ** fanVelX;
float ** fanVelY;
@@ -63,7 +63,7 @@ public:
private:
float * fanVelXPtr;
float * fanVelYPtr;
- char * blockMapPtr;
+ unsigned char * blockMapPtr;
ParseResult readOPS(char * data, int dataLength);
ParseResult readPSv(char * data, int dataLength);