Core: Some optimizations
- Declare some functions const - Fix some mem leak - Fix some resource leak - Remove unused variables and functions - Remove duplicate functions - Reduce the scope of some variables - Remove unused file --HG-- branch : trunk
This commit is contained in:
@@ -299,14 +299,11 @@ public:
|
||||
if (DispelTimer <= diff)
|
||||
{
|
||||
Unit *pTarget = NULL;
|
||||
bool friendly = false;
|
||||
|
||||
if (urand(0,1))
|
||||
pTarget = SelectTarget(SELECT_TARGET_RANDOM, 0, 100, true);
|
||||
else
|
||||
{
|
||||
friendly = true;
|
||||
|
||||
if (urand(0,1))
|
||||
pTarget = me;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user