--- a/src/Network/Server.cc Sat Jan 17 02:58:36 2009 +0200
+++ b/src/Network/Server.cc Tue Jan 20 22:00:24 2009 +0200
@@ -240,14 +240,9 @@
// translate to a byte array
size_t terrain_size = map.x * map.y;
- uint8_t terrain_buf[map.x][map.y];
- // copy over from terrain vector
- for (PixelDimension x = 0; x < map.x; x++) {
- for (PixelDimension y = 0; y < map.y; y++) {
- terrain_buf[x][y] = (uint8_t) terrain.terrain[x][y];
- }
- }
+ // get terrain buffer
+ const uint8_t *terrain_buf = terrain.getTerrainBuffer();
// allocate our packet...
BigNetworkPacket pkt (