~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/tron/chat.php

  • Committer: zodiacsohma1 at gmail
  • Date: 2014-03-02 08:09:55 UTC
  • Revision ID: zodiacsohma1@gmail.com-20140302080955-r5ot6eipfe0nlpww
Simplified all fields and code in all areas for better as they seem to repeat themselves.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
                foreach (Base::$base->PLAYERS as $p)
48
48
                {
49
49
                    //  they are debugging.
50
 
                    if (isset($p) && !is_null($p) && $p instanceof Player && $p->debug)
 
50
                    if (isset($p) && $p instanceof Player && $p->debug)
51
51
                    {
52
52
                        $debuggers[] = $p;
53
53
                    }
120
120
function parseUnknownChat()
121
121
{
122
122
    $player = getPlayerByLog(Base::$base->pieces[2]);
123
 
    if (isset($player) && !is_null($player) && $player instanceof Player)
 
123
    if (isset($player) && $player instanceof Player)
124
124
    {
125
125
        $command_found = true;
126
126