]> git.mxchange.org Git - city.git/commitdiff
Changed 'empty' to 'grass'.
authorRoland Haeder <roland@mxchange.org>
Tue, 25 Aug 2015 19:52:07 +0000 (21:52 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 25 Aug 2015 19:53:40 +0000 (21:53 +0200)
Signed-off-by: Roland Haeder <roland@mxchange.org>
application/city/classes/database/frontend/city_entities/sections/class_CitySectionsDatabaseWrapper.php

index 28826adeba3f9baf1002196fb47464582b415404..b7ab16f1fd276fb418ea7fc20eb79cc006be03c9 100644 (file)
@@ -71,7 +71,7 @@ class CitySectionsDatabaseWrapper extends BaseDatabaseWrapper implements CitySec
 
        // Sub sections
        // @TODO All types of water are not supported yet.
-       const SUB_SECTION_TYPE_EMPTY = 'empty';
+       const SECTION_SUB_TYPE_GRASS = 'grass';
 
        // Reserved flag
        const IS_NOT_RESERVED = 0;
@@ -169,7 +169,7 @@ class CitySectionsDatabaseWrapper extends BaseDatabaseWrapper implements CitySec
                $dataSetInstance->addCriteria(self::DB_COLUMN_CITY_ID                   , $cityId);
                $dataSetInstance->addCriteria(self::DB_COLUMN_LOT_ID                    , 0);
                $dataSetInstance->addCriteria(self::DB_COLUMN_SECTION_TYPE              , self::SECTION_TYPE_EMPTY_LAND);
-               $dataSetInstance->addCriteria(self::DB_COLUMN_SECTION_SUB_TYPE          , self::SUB_SECTION_TYPE_EMPTY);
+               $dataSetInstance->addCriteria(self::DB_COLUMN_SECTION_SUB_TYPE          , self::SECTION_SUB_TYPE_GRASS);
                $dataSetInstance->addCriteria(self::DB_COLUMN_SECTION_POSITION_X        , 0);
                $dataSetInstance->addCriteria(self::DB_COLUMN_SECTION_POSITION_Y        , 0);
                $dataSetInstance->addCriteria(self::DB_COLUMN_SECTION_POSITION_Z        , 0);
@@ -204,11 +204,11 @@ class CitySectionsDatabaseWrapper extends BaseDatabaseWrapper implements CitySec
 
                                        // Fill array up with south/east/down ids
                                        $sections[($north * -1)][($west * -1)][$z]['type'] = self::SECTION_TYPE_EMPTY_LAND;
-                                       $sections[($north * -1)][($west * -1)][$z]['sub']  = self::SUB_SECTION_TYPE_EMPTY;
+                                       $sections[($north * -1)][($west * -1)][$z]['sub']  = self::SECTION_SUB_TYPE_GRASS;
 
                                        // Fill up array with north/west/up ids
                                        $sections[$north][$west][$z]['type'] = self::SECTION_TYPE_EMPTY_LAND;
-                                       $sections[$north][$west][$z]['sub']  = self::SUB_SECTION_TYPE_EMPTY;
+                                       $sections[$north][$west][$z]['sub']  = self::SECTION_SUB_TYPE_GRASS;
                                } // END - for
                        } // END - for
                } // END - for