This commit is contained in:
Shadow
2015-06-22 08:20:34 +03:00
parent fa6538a165
commit ff5ca62a1e
8 changed files with 81 additions and 55 deletions
+9 -5
View File
@@ -4,14 +4,15 @@
## -= YOU MAY NOT REMOVE OR CHANGE THIS NOTICE =- ##
## --------------------------------------------------------------------------- ##
## Project: TravianZ ##
## Version: 01.09.2013 ##
## Version: 22.06.2015 ##
## Filename db_MYSQL.php ##
## Developed by: Mr.php , Advocaite , brainiacX , yi12345 , Shadow , ronix ##
## Fixed by: Shadow - Doubleing Troops , STARVATION , HERO FIXED COMPL. ##
## Fixed by: Shadow - STARVATION , HERO FIXED COMPL. ##
## Fixed by: InCube - double troops ##
## License: TravianZ Project ##
## Copyright: TravianZ (c) 2010-2013. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: http://github.com/Shadowss/TravianZ-by-Shadow/ ##
## Copyright: TravianZ (c) 2010-2015. All rights reserved. ##
## URLs: http://travian.shadowss.ro ##
## Source code: https://github.com/Shadowss/TravianZ ##
## ##
#################################################################################
@@ -2718,6 +2719,9 @@ class MYSQL_DB {
else{$unit = 'u' . $unit;}
++$i;
// Fixed
$array_amt[$i] = $array_amt[$i] < 0 ? 0 : $array_amt[$i];
//
$units .= $unit.' = '.$unit.' '.(($array_mode[$i] == 1)? '+':'-').' '.$array_amt[$i].(($number > $i+1) ? ', ' : '');
}