#3356: scavfact.js: useless "*128" ------------------------------------+------------------------------------- Reporter: NoQ | Owner: Per Type: bug | Status: new Priority: normal | Milestone: unspecified Component: Engine: Scripting / AI | Version: 3.1 and master Keywords: | Blocked By: Blocking: | Operating System: All/Non-Specific ------------------------------------+------------------------------------- In the current scavfact.js: Line 88: {{{ groupAddArea(attackGroup, 0, 0, (mapWidth * 128), (mapHeight * 128)); }}} Line 128: {{{ if (distBetweenTwoPoints(victim.x, victim.y, attacker.x, attacker.y) < (24 * 128)) }}} Both "* 128" are unnecessary. The last one also actually changes the behaviour: droids still react even when the distance is very big.
-- Ticket URL: <http://developer.wz2100.net/ticket/3356> Warzone 2100 Trac <http://developer.wz2100.net/> The Warzone 2100 Project ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Warzone2100-project mailing list Warzone2100-project@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/warzone2100-project