Skip to content

Commit

Permalink
Fix color tool changing default spawn colors
Browse files Browse the repository at this point in the history
  • Loading branch information
StyledStrike committed Dec 25, 2024
1 parent 1152ed2 commit 09be489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lua/entities/base_glide/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -543,5 +543,6 @@ local colors = {
}

function ENT:GetSpawnColor()
return colors[math.random( #colors )]
end
local color = colors[math.random( #colors )]
return Color( color.r, color.g, color.b )
end
2 changes: 1 addition & 1 deletion lua/entities/base_glide/shared.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ function ENT:SetupDataTables()
end
end

-- You can safely override these on children classes
function ENT:IsEngineOn()
return self:GetEngineState() > 0
end

-- You can safely override these on children classes
function ENT:OnPostInitialize() end
function ENT:OnTurnOn() end
function ENT:OnTurnOff() end
Expand Down

0 comments on commit 09be489

Please sign in to comment.