Remove unused variables. Fix warnings
Merge pull request #1150 from igorko/master

Remove unused variables. Fix warnings
If an event has a hotspot, use the hotspot center for the center point

This fixes triggering events that have a hotspot that isn't the event
location.