Skip to content
Permalink
Browse files

alive is a tinyint, so it cannot be bool.

false to 0, true to 1 converted
  • Loading branch information...
NB-Core committed Jan 20, 2019
1 parent ed48e9f commit 8418b6332052bdc6c8eb8a35119f562d8e2c99e1
Showing with 9 additions and 44 deletions.
  1. +2 −2 common.php
  2. +1 −1 dragon.php
  3. +2 −2 ext/lotgd_common.php
  4. +1 −1 forestoutcomes.php
  5. +0 −35 lib/dbwrapper.php
  6. +1 −1 lib/pvpsupport.php
  7. +2 −2 mailinfo_base.php
@@ -297,9 +297,9 @@
if (isset($session['user']['hitpoints']) && $session['user']['hitpoints']>0){
$session['user']['alive']=true;
$session['user']['alive']=1;
}else{
$session['user']['alive']=false;
$session['user']['alive']=0;
}
if (isset($session['user']['bufflist']))
@@ -291,7 +291,7 @@
}else{
addnews("`%%s`5 has been slain when he encountered `@%s`5!!! His bones now litter the cave entrance, just like the bones of those who came before.`n%s",$session['user']['name'],$badguy['creaturename'],$taunt);
}
$session['user']['alive']=false;
$session['user']['alive']=0;
debuglog("lost {$session['user']['gold']} gold when they were slain");
$session['user']['gold']=0;
$session['user']['hitpoints']=0;
@@ -296,9 +296,9 @@
if (isset($session['user']['hitpoints']) && $session['user']['hitpoints']>0){
$session['user']['alive']=true;
$session['user']['alive']=1;
}else{
$session['user']['alive']=false;
$session['user']['alive']=0;
}
if (isset($session['user']['bufflist']))
@@ -157,7 +157,7 @@ function forestdefeat($enemies,$where="in the forest"){
} else {
addnews("%s",$deathmessage['deathmessage']);
}
$session['user']['alive']=false;
$session['user']['alive']=0;
debuglog("lost gold when they were slain $where",false,false,"forestlose",-$session['user']['gold']);
$session['user']['gold']=0;
$session['user']['hitpoints']=0;

This file was deleted.

@@ -203,7 +203,7 @@ function pvpdefeat($badguy, $killedloc, $taunt, $options=false)
db_query($sql);
}
$session['user']['alive']=false;
$session['user']['alive']=0;
debuglog("lost {$session['user']['gold']} ($winamount to winner) gold and $lostexp exp ($wonexp to winner) being slain by ", $badguy['acctid']);
$session['user']['gold']=0;
$session['user']['hitpoints']=0;
@@ -297,9 +297,9 @@
if (isset($session['user']['hitpoints']) && $session['user']['hitpoints']>0){
$session['user']['alive']=true;
$session['user']['alive']=1;
}else{
$session['user']['alive']=false;
$session['user']['alive']=0;
}
if (isset($session['user']['bufflist']))

0 comments on commit 8418b63

Please sign in to comment.
You can’t perform that action at this time.