aboutsummaryrefslogtreecommitdiff
path: root/gamemode/hud
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2016-05-13 21:56:01 -0400
committerAlexander Pickering <alexandermpickering@gmail.com>2016-05-13 21:56:01 -0400
commit14514c06cf8101b949dcc37499acbb50b8aebb25 (patch)
tree476213189e969d5b8afd7bc98a0b5847eb56f721 /gamemode/hud
parentaceb05f916ec50f3dfe0aeae148e17d8a01fe2fc (diff)
downloadwintersurvival2-14514c06cf8101b949dcc37499acbb50b8aebb25.tar.gz
wintersurvival2-14514c06cf8101b949dcc37499acbb50b8aebb25.tar.bz2
wintersurvival2-14514c06cf8101b949dcc37499acbb50b8aebb25.zip
Finally fixed the problem with research tables occasionally returning bad recipie
Diffstat (limited to 'gamemode/hud')
-rw-r--r--gamemode/hud/games/base.lua2
-rw-r--r--gamemode/hud/games/connectthedots.lua2
-rw-r--r--gamemode/hud/games/rubickscircle.lua2
3 files changed, 6 insertions, 0 deletions
diff --git a/gamemode/hud/games/base.lua b/gamemode/hud/games/base.lua
index eba7642..5bf455a 100644
--- a/gamemode/hud/games/base.lua
+++ b/gamemode/hud/games/base.lua
@@ -1,6 +1,8 @@
--A file to show what functions are used for minigames
print("Base included!")
+Game = Game or {}
+
--Required functions
--Called once when the plyer starts casting
Game.Cast = function(spelltab,difficulty)
diff --git a/gamemode/hud/games/connectthedots.lua b/gamemode/hud/games/connectthedots.lua
index 20cc601..9e05919 100644
--- a/gamemode/hud/games/connectthedots.lua
+++ b/gamemode/hud/games/connectthedots.lua
@@ -1,6 +1,8 @@
--The connet the dots spell game
print("Hi from connectthedots.lua")
+Game = Game or {}
+
--Minigame is held in self.dots, each dot is a table,
--dot[num] = {dot x, dot y, {
-- {armor_start_angle, armor_end_angle},
diff --git a/gamemode/hud/games/rubickscircle.lua b/gamemode/hud/games/rubickscircle.lua
index 2e81bba..a659f9c 100644
--- a/gamemode/hud/games/rubickscircle.lua
+++ b/gamemode/hud/games/rubickscircle.lua
@@ -12,6 +12,8 @@ print("rubick's circle included!")
/ | \
]]-- 5 4 3
+Game = Game or {}
+
--Required functions
--Called once when the plyer starts casting
Game.Cast = function(spelltab,difficulty)