~armagetronad-ap/armagetronad/BattleMania

« back to all changes in this revision

Viewing changes to src/tools/map.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:
50
50
 
51
51
        //  let's read the data for the walls
52
52
        $walls = $map->getElementsByTagName('Wall');
53
 
        if (!is_null($walls))
 
53
        if (isset($walls))
54
54
        {
55
55
            //  let's load individual wall data
56
56
            foreach ($walls as $wall)
59
59
 
60
60
                //  let's get hold of the points
61
61
                $points = $wall->getElementsByTagName('Point');
62
 
                if (!is_null($points))
 
62
                if (isset($points))
63
63
                {
64
64
                    //  load each point
65
65
                    foreach($points as $point)
90
90
 
91
91
        //  let's read the data on the spawns
92
92
        $spawns = $map->getElementsByTagName('Spawn');
93
 
        if (!is_null($spawns))
 
93
        if (isset($spawns))
94
94
        {
95
95
            foreach($spawns as $spawn)
96
96
            {