oy/teeworlds — Issue #889: Direction vec2(0,0)
Author: MAP94
Created: 2011-11-13 11:55:50+00:00
State: open

if you fire to vec2(0, 0) the laser goes threw walls and aims to the top-left corner

if(vec2(m_LatestInput.m_TargetX, m_LatestInput.m_TargetY) == vec2(0,0))
return; // or vec2(0, -1);

Bug found by Schmop