Commit 41db9648 authored by Alexey Hohlov's avatar Alexey Hohlov
Browse files

Более правильное создание стен вокруг карты

parent 41116634
......@@ -157,11 +157,11 @@ void CMap::loadmap(string name)
printf("landscape size: %ix%i\n",cx,cy);
/* adding borders */
for (i = 1; i < cx - 1; i++) {
for (i = 0; i < cx; i++) {
add_object(i * 64, map_h, oTypeWallConcrete);
add_object(i * 64, 0, oTypeWallConcrete);
}
for (i = 0; i < cy - 1; i++) {
for (i = 1; i < cy - 1; i++) {
add_object(map_w, i * 64, oTypeWallConcrete);
add_object(0, i * 64, oTypeWallConcrete);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment