File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/xgp3.0.0/upload/application/controllers/adm Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -1034,7 +1034,8 @@ private function saveBuildings($type = 1)
1034
1034
// REMOVE LAST COMMA
1035
1035
//$query_string = substr_replace($query_string, '', -1);
1036
1036
// QUERY END
1037
- $ query_string .= " `planet_field_current` = ' " . $ total_fields . "' " ;
1037
+ $ query_string .= " `planet_field_current` = ' " . $ total_fields . "', " ;
1038
+ $ query_string .= " `planet_field_max` = IF(`planet_type` = 3, 1 + `building_mondbasis` * " . FIELDS_BY_MOONBASIS_LEVEL . ", `planet_field_max`) " ;
1038
1039
$ query_string .= " WHERE `building_planet_id` = ' " . parent ::$ db ->escapeValue ($ id_get ) . "'
1039
1040
AND `planet_id` = ' " . parent ::$ db ->escapeValue ($ id_get ) . "'; " ;
1040
1041
You can’t perform that action at this time.
0 commit comments