Skip to content

Commit

Permalink
Merge branch 'ipochto/highground-fixes' of github.com:Wargus/stratagu…
Browse files Browse the repository at this point in the history
…s into ipochto/highground-fixes
  • Loading branch information
ipochto committed Nov 25, 2023
2 parents 5ab2804 + d2d6b13 commit 979a786
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/map/script_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1065,14 +1065,14 @@ static int CclGetIsGameHoster(lua_State *l)
**
** Example:
**
** <div class="example"><code><strong>PresentMap</strong>("Map description", 1, 128, 128, 17)</code></div>
** <div class="example"><code><strong>PresentMap</strong>("Map description", PlayerCount, Width, Height, uid_number [, "highgrounds-enabled"])</code></div>
*/
static int CclPresentMap(lua_State *l)
{
LuaCheckArgs_min(l, 5);

Map.Info.Description = LuaToString(l, 1);
// Number of players in LuaToNumber(l, 3); // Not used yet.
// Number of players in LuaToNumber(l, 2); // Not used yet.
Map.Info.MapWidth = LuaToNumber(l, 3);
Map.Info.MapHeight = LuaToNumber(l, 4);
Map.Info.MapUID = LuaToNumber(l, 5);
Expand All @@ -1081,6 +1081,8 @@ static int CclPresentMap(lua_State *l)
const std::string_view highgrounds = LuaToString(l, 6);
if (highgrounds == "highgrounds-enabled") {
Map.Info.EnableHighgrounds();
} else {
LuaError(l, "Unknown value %s\n", highgrounds.data());
}
}

Expand Down

0 comments on commit 979a786

Please sign in to comment.