Skip to content

Commit

Permalink
genertor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
advocaite committed Nov 22, 2011
1 parent 1c335b4 commit d10cf67
Showing 1 changed file with 3 additions and 43 deletions.
46 changes: 3 additions & 43 deletions GameEngine/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ public function getTimeFormat($time) {
return $hr.":".$min.":".$time;
}

public function procMtime($time, $pref = 3) {
<<<<<<< HEAD
public function procMtime($time, $pref = 3) {
/*
$timezone = 7;
switch($timezone) {
Expand Down Expand Up @@ -128,50 +127,11 @@ public function procMtime($time, $pref = 3) {
}
$new = date("H:i:s",$time);
if ($pref=="9"||$pref==9)
=======
/*$timezone = 7;
switch($timezone) {
case 7:
$time -= 3600;
break;
}*/

//$time=3600*7;

if (date('Ymd',time()) == date('Ymd',$time)) {
//if ((time()-$time) < 24*60*60 && (time()-$time) > 0) {
$day = "today";
}
else {

switch($pref) {
case 1:
$day = date("m/j/y",$time);
break;
case 2:
$day = date("j/m/y",$time);
break;
case 3:
$day = date("j.m.y",$time);
break;
default:
$day = date("y/m/j",$time);
break;
}
}
$new = date("H:i",$time);

if ($pref=="9"||$pref==9) {
>>>>>>> 924221ea825055ae8ab7fc42f1b8c6c90424e7d8
return $new;
} else {
else
return array($day,$new);
<<<<<<< HEAD
}
=======
}
}
>>>>>>> 924221ea825055ae8ab7fc42f1b8c6c90424e7d8


public function getBaseID($x,$y) {
return ((WORLD_MAX-$y) * (WORLD_MAX*2+1)) + (WORLD_MAX +$x + 1);
Expand Down

0 comments on commit d10cf67

Please sign in to comment.