Optimize this..
PHP Code:
And this. PHP Code:
|
Re: Optimize this..
For the damage formula, manage yourself, it hurts my eyes..
For the switch statements : Use a lookup table, you have to implement all weapons, put 1.0 for no change. PHP Code:
For the level and cost : PHP Code:
|
Re: Optimize this..
Quote:
I do not understand the formula of the damage, That is fine? PHP Code:
|
Re: Optimize this..
Optimized:
PHP Code:
|
| All times are GMT -4. The time now is 07:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.