diff options
| author | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-29 20:02:47 -0500 |
|---|---|---|
| committer | Alexander Pickering <Alexander.Pickering@anondomain.site90.net> | 2016-01-29 20:02:47 -0500 |
| commit | 74add3875df54c3bbff2020bc97013c8bce66df4 (patch) | |
| tree | 2ad50181197ceba5106a243367588bd0ecadd7bd | |
| parent | 7d034ce5112190fd1b62bb69ffc5039c4615e7c7 (diff) | |
| download | wintersurvival2-74add3875df54c3bbff2020bc97013c8bce66df4.tar.gz wintersurvival2-74add3875df54c3bbff2020bc97013c8bce66df4.tar.bz2 wintersurvival2-74add3875df54c3bbff2020bc97013c8bce66df4.zip | |
A little more work on connect the dots minigame
| -rw-r--r-- | gamemode/hud/games/connectthedots.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gamemode/hud/games/connectthedots.lua b/gamemode/hud/games/connectthedots.lua index e0d496d..d0e00b8 100644 --- a/gamemode/hud/games/connectthedots.lua +++ b/gamemode/hud/games/connectthedots.lua @@ -54,7 +54,7 @@ Game.AddRegDot = function(self) --Find the angles that we will add outselves between for k,v in pairs(fd[2]) do if(position > v[1]) then - position += v[2]-v[1] + position = position + v[2] - v[1] end end print("Adding new dot at an angle of " .. position) @@ -65,7 +65,7 @@ Game.AddRegDot = function(self) --If we're in the first quadrent if(math.cos(position) > 0) then rand = math.random(fd[0],ScrW()) - + end end |
