equal
deleted
inserted
replaced
2181 end |
2181 end |
2182 |
2182 |
2183 end |
2183 end |
2184 |
2184 |
2185 -- if player is hit by circle bazooka |
2185 -- if player is hit by circle bazooka |
2186 elseif (GetGearType(gear) == gtShell) then |
2186 elseif (GetGearType(gear) == gtShell) and (CurrentHedgehog ~= nil) then |
2187 |
2187 |
2188 dist = GetDistFromGearToGear(gear, CurrentHedgehog) |
2188 dist = GetDistFromGearToGear(gear, CurrentHedgehog) |
2189 |
2189 |
2190 if beam == true then |
2190 if beam == true then |
2191 |
2191 |
2221 end |
2221 end |
2222 |
2222 |
2223 -- collision detection for player entering a circle |
2223 -- collision detection for player entering a circle |
2224 function CheckDistances() |
2224 function CheckDistances() |
2225 |
2225 |
|
2226 if not CurrentHedgehog then |
|
2227 return |
|
2228 end |
2226 --nw WriteLnToConsole("Start of CheckDistances()") |
2229 --nw WriteLnToConsole("Start of CheckDistances()") |
2227 |
2230 |
2228 for i = 0,(vCCount-1) do |
2231 for i = 0,(vCCount-1) do |
2229 |
2232 |
2230 |
2233 |