mirror of
https://github.com/a-bad-dev/simple-shooter-game.git
synced 2026-06-08 20:12:11 +00:00
Fix /start...
This commit is contained in:
parent
42663612a2
commit
00b55b666a
2 changed files with 5 additions and 4 deletions
|
|
@ -13,9 +13,9 @@ core.register_chatcommand("start", {
|
||||||
return false, "-!- Match is already in progress!"
|
return false, "-!- Match is already in progress!"
|
||||||
end
|
end
|
||||||
|
|
||||||
local sucess = start_match(param)
|
start_match(param)
|
||||||
|
|
||||||
if map_data == "nope :(" then
|
if map_data == nil then
|
||||||
return false, "-!- Map not found!"
|
return false, "-!- Map not found!"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
-- Maps mod for SSG
|
-- Maps mod for SSG
|
||||||
|
|
||||||
local map_path = core.get_modpath("maps") .. "/maps/"
|
local map_path = core.get_modpath("maps") .. "/maps/"
|
||||||
map_data = {}
|
map_data = nil
|
||||||
|
|
||||||
map_list = core.get_dir_list(map_path, true)
|
map_list = core.get_dir_list(map_path, true)
|
||||||
table.sort(map_list)
|
table.sort(map_list)
|
||||||
|
|
@ -14,7 +14,8 @@ function place_map(map)
|
||||||
map_pos = vector.new(1000 * (i - 1), 0, 0)
|
map_pos = vector.new(1000 * (i - 1), 0, 0)
|
||||||
break
|
break
|
||||||
elseif i == #map_list then
|
elseif i == #map_list then
|
||||||
return nil
|
map_data = nil
|
||||||
|
return
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue