summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/battle/src/Comm/SetMap.elm2
-rw-r--r--src/map-editor/src/Comm/SendMapUpdate.elm8
-rw-r--r--src/map-editor/src/Comm/SetMap.elm2
-rw-r--r--www/index.html.m424
4 files changed, 18 insertions, 18 deletions
diff --git a/src/battle/src/Comm/SetMap.elm b/src/battle/src/Comm/SetMap.elm
index af930f2..d26ca74 100644
--- a/src/battle/src/Comm/SetMap.elm
+++ b/src/battle/src/Comm/SetMap.elm
@@ -30,7 +30,7 @@ deserialize_tile_borders : (
)
deserialize_tile_borders rem_ints current_borders =
case rem_ints of
- [] -> current_borders
+ [] -> (List.reverse current_borders)
(a :: (b :: c)) ->
(deserialize_tile_borders
c
diff --git a/src/map-editor/src/Comm/SendMapUpdate.elm b/src/map-editor/src/Comm/SendMapUpdate.elm
index 27a5747..d47cee2 100644
--- a/src/map-editor/src/Comm/SendMapUpdate.elm
+++ b/src/map-editor/src/Comm/SendMapUpdate.elm
@@ -38,11 +38,9 @@ encode_tile_instance tile_inst =
(Json.Encode.int (Struct.Tile.get_variant_ix tile_inst))
]
++
- (List.concat
- (List.map
- (encode_tile_border_values)
- (Struct.Tile.get_borders tile_inst)
- )
+ (List.concatMap
+ (encode_tile_border_values)
+ (Struct.Tile.get_borders tile_inst)
)
)
)
diff --git a/src/map-editor/src/Comm/SetMap.elm b/src/map-editor/src/Comm/SetMap.elm
index 7a83320..36ddade 100644
--- a/src/map-editor/src/Comm/SetMap.elm
+++ b/src/map-editor/src/Comm/SetMap.elm
@@ -30,7 +30,7 @@ deserialize_tile_borders : (
)
deserialize_tile_borders rem_ints current_borders =
case rem_ints of
- [] -> current_borders
+ [] -> (List.reverse current_borders)
(a :: (b :: c)) ->
(deserialize_tile_borders
c
diff --git a/www/index.html.m4 b/www/index.html.m4
index 2046133..f84d3f1 100644
--- a/www/index.html.m4
+++ b/www/index.html.m4
@@ -15,19 +15,21 @@
<h3>Currently running: __CONF_VERSION</h3>
</div>
<div class="popup-message">
- <p>This website lets you play the game, even during its development phase. As a result, there is a lot missing.</p>
- <p>
- Having accounts at that stage would needlessly slow us down, so access to
- <a href="/battle/?id=0">the game's battle system</a> is done without login in.
+ <h3>Welcome to __CONF_SERVER_NAME</h3>
+ <p>__CONF_SERVER_NAME is a turn based multiplayer strategy game.</p>
+ It is still in an early development phase, meaning that most of its
+ features are not implemented yet.
</p>
- <p>
- <a href="/map-editor/?id=0">The game's map editor</a> is also
- available, albeit nowhere near as finished.
- </p>
- <p>You can access the source code for the game this website is running, under the Apache 2.0 License:</p>
+ <h3>Available content</h3>
+ <ul>
+ <li><a href="/battle/?id=0">Battle System</a></li>
+ <li><a href="/map-editor/?id=0">Map Editor</a></li>
+ <li><a href="/login/">Sign-In/Sign-Up Manager</a> (Soon)</li>
+ </ul>
+ <h3>Access to the source code (Apache 2.0 License)</h3>
<ul>
- <li><a href="https://noot-noot.org/cgit.cgi/tacticians-client/">Source code for the front-end</a></li>
- <li><a href="https://noot-noot.org/cgit.cgi/tacticians-server/">Source code for the back-end</a></li>
+ <li><a href="https://noot-noot.org/cgit.cgi/tacticians-client/">Front-End</a></li>
+ <li><a href="https://noot-noot.org/cgit.cgi/tacticians-server/">Back-End</a></li>
</ul>
</div>
</body>