Skip to content

Commit

Permalink
Removed redundant metatable info for eventTypes table.
Browse files Browse the repository at this point in the history
  • Loading branch information
Putnam3145 committed Apr 16, 2014
1 parent 9411e23 commit bd0bf0f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hack/lua/fantastic/events.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,8 @@ hiddenEventInfo.UNIT_SPAWNED.func=function()
end)
end

local metaEventTypes={__tostring=function(self) return self.activated end,__metatable='just for tostring'}

eventTypes={UNIT_SPAWNED=false}

setmetatable(eventTypes,metaEventTypes)

function enableEvent(eventType,numTicks)
local eventActivated=eventTypes[eventType]
local event=hiddenEventInfo[eventType]
Expand Down

0 comments on commit bd0bf0f

Please sign in to comment.