some fixes by SalmonPlus

This commit is contained in:
unknown
2012-05-25 12:42:09 +03:00
parent fa34a54ace
commit c99a6fc621
3 changed files with 14 additions and 7 deletions
+2 -1
View File
@@ -963,7 +963,8 @@ class Automation {
if($enforce['u'.$i]>'0'){ if($enforce['u'.$i]>'0'){
$database->modifyEnforce($enforce['id'],$i,round($battlepart[2]*$enforce['u'.$i]),0); $database->modifyEnforce($enforce['id'],$i,round($battlepart[2]*$enforce['u'.$i]),0);
$dead[$i]+=round($battlepart[2]*$enforce['u'.$i]); $dead[$i]+=round($battlepart[2]*$enforce['u'.$i]);
if($dead[$i]!=$enforce['u'.$i]){ $checkpoint=round($battlepart[2]*$enforce['u'.$i]);
if($checkpoint!=$enforce['u'.$i]){
$wrong='1'; $wrong='1';
} }
} else { } else {
+7 -6
View File
@@ -430,12 +430,13 @@ class Battle {
$moralbonus = 1.0; $moralbonus = 1.0;
} }
if($involve >= 1000) { if($involve >= 1000) {
$Mfactor = round(2*(1.8592-pow($involve,0.015)),4); $Mfactor = round(2*(1.8592-pow($involve,0.015)),4);
} }
else { else {
$Mfactor = 1.5; $Mfactor = 1.5;
} }
if ($Mfactor < 1.25778){$Mfactor=1.25778;}elseif ($Mfactor > 1.5){$Mfactor=1.5;}
// Formule voor het berekenen verloren drives // Formule voor het berekenen verloren drives
// $type = 1 Raid, 0 Normal // $type = 1 Raid, 0 Normal
if($type == 1) if($type == 1)
+5
View File
@@ -21,4 +21,9 @@ $_GET = array_map('mysql_real_escape_string', $_GET);
$_GET = array_map('htmlspecialchars', $_GET); $_GET = array_map('htmlspecialchars', $_GET);
$_COOKIE = array_map('mysql_real_escape_string', $_COOKIE); $_COOKIE = array_map('mysql_real_escape_string', $_COOKIE);
$_COOKIE = array_map('htmlspecialchars', $_COOKIE); $_COOKIE = array_map('htmlspecialchars', $_COOKIE);
$rsargs=$_GET['rsargs'];
$_GET = array_map('mysql_real_escape_string', $_GET);
$_GET = array_map('htmlspecialchars', $_GET);
$_GET['rsargs']=$rsargs;
?> ?>