summaryrefslogtreecommitdiff
path: root/gamemode/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'gamemode/init.lua')
-rw-r--r--gamemode/init.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/gamemode/init.lua b/gamemode/init.lua
index 024358b..4a43b11 100644
--- a/gamemode/init.lua
+++ b/gamemode/init.lua
@@ -217,7 +217,7 @@ function GM:InitPostEntity()
for k,v in pairs(ents.FindByClass("prop_physics")) do
local min,max = v:WorldSpaceAABB()
local height = max.z - min.z
- if height > 10 then
+ if height > 10 and (not v:IsFrozen()) then
table.insert(tbl,v)
end
end
@@ -1543,6 +1543,7 @@ function GM:EndGame( winner )
if(MapVote && MapVote.Start) then
local maps = {}
files,dirs = file.Find("maps/*.bsp","MOD")
+ SetGlobalBool( "GameOver", false )
MapVote.Start(20,false,5,files)
else
print("Mapvote:")