Commit d2663b41 authored by Nemo Ma's avatar Nemo Ma Committed by GitHub

Merge pull request #124 from hikawiier/waaagh

fix
parents 4077dcd5 70722897
...@@ -407,6 +407,7 @@ span[tooltip] { ...@@ -407,6 +407,7 @@ span[tooltip] {
} }
span[tooltip]:hover:before { span[tooltip]:hover:before {
content: attr(tooltip); content: attr(tooltip);
display: inline-block;
font: 8pt "微软雅黑" serif; color: rgba(225, 124, 226, 1); font: 8pt "微软雅黑" serif; color: rgba(225, 124, 226, 1);
padding: 7px; text-align: left; white-space:pre-line; padding: 7px; text-align: left; white-space:pre-line;
text-shadow:1px 1px 1px rgb(106, 0, 108); text-fill-color: rgb(245, 174, 246); -webkit-text-fill-color: rgb(245, 174, 246); text-shadow:1px 1px 1px rgb(106, 0, 108); text-fill-color: rgb(245, 174, 246); -webkit-text-fill-color: rgb(245, 174, 246);
...@@ -418,6 +419,7 @@ span[tooltip]:hover:before { ...@@ -418,6 +419,7 @@ span[tooltip]:hover:before {
} }
span[tooltip2]:hover:before { span[tooltip2]:hover:before {
content: attr(tooltip2); content: attr(tooltip2);
display: inline-block;
font: 8pt "微软雅黑" serif; color: rgba(225, 124, 226, 1); font: 8pt "微软雅黑" serif; color: rgba(225, 124, 226, 1);
padding: 7px; text-align: left; white-space:pre-line; padding: 7px; text-align: left; white-space:pre-line;
text-shadow:1px 1px 1px rgb(106, 0, 108); text-fill-color: rgb(245, 174, 246); -webkit-text-fill-color: rgb(245, 174, 246); text-shadow:1px 1px 1px rgb(106, 0, 108); text-fill-color: rgb(245, 174, 246); -webkit-text-fill-color: rgb(245, 174, 246);
......
...@@ -177,7 +177,7 @@ function findcorpse(&$w_pdata){ ...@@ -177,7 +177,7 @@ function findcorpse(&$w_pdata){
function senditem(){ function senditem(){
//global $db,$tablepre,$log,$mode,$main,$command,$cmd,$battle_title,$pls,$plsinfo,$message,$now,$name,$w_log,$teamID,$gamestate,$action; //global $db,$tablepre,$log,$mode,$main,$command,$cmd,$battle_title,$pls,$plsinfo,$message,$now,$name,$w_log,$teamID,$gamestate,$action;
global $db,$tablepre,$log,$mode,$main,$command,$cmd,$battle_title,$plsinfo,$hplsinfo,$now,$gamestate; global $db,$tablepre,$log,$mode,$main,$command,$cmd,$battle_title,$message,$plsinfo,$hplsinfo,$now,$gamestate;
if(!isset($data)) if(!isset($data))
{ {
global $pdata; global $pdata;
......
...@@ -258,8 +258,16 @@ function save_gameinfo() ...@@ -258,8 +258,16 @@ function save_gameinfo()
global $now,$db,$gtablepre,$tablepre; global $now,$db,$gtablepre,$tablepre;
global $groomid,$gamenum,$gamestate,$lastupdate,$starttime,$winmode,$winner,$arealist,$areanum,$areatime,$areawarn,$validnum,$alivenum,$deathnum,$afktime,$optime,$weather,$hack,$combonum,$gamevars; global $groomid,$gamenum,$gamestate,$lastupdate,$starttime,$winmode,$winner,$arealist,$areanum,$areatime,$areawarn,$validnum,$alivenum,$deathnum,$afktime,$optime,$weather,$hack,$combonum,$gamevars;
if(!isset($gamenum)||!isset($gamestate)){return;} if(!isset($gamenum)||!isset($gamestate)){return;}
if($alivenum < 0){$alivenum = 0;}
if($deathnum < 0){$deathnum = 0;} $result = $db->query("SELECT pid FROM {$tablepre}players WHERE type=0");
$validnum = $db->num_rows($result);
$result = $db->query("SELECT pid FROM {$tablepre}players WHERE hp>0 AND type=0");
$alivenum = $db->num_rows($result);
$result = $db->query("SELECT pid FROM {$tablepre}players WHERE hp<=0 OR state>=10");
$deathnum = $db->num_rows($result);
if(empty($afktime)){$afktime = $now;} if(empty($afktime)){$afktime = $now;}
if(empty($optime)){$optime = $now;} if(empty($optime)){$optime = $now;}
$gameinfo = Array(); $gameinfo = Array();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment