Fix building sorting #515
This commit is contained in:
@@ -1874,11 +1874,11 @@ CM.Disp.UpdateBotTimerBarPosition = function() {
|
|||||||
*/
|
*/
|
||||||
CM.Disp.UpdateBuildings = function() {
|
CM.Disp.UpdateBuildings = function() {
|
||||||
if (Game.buyMode == 1) {
|
if (Game.buyMode == 1) {
|
||||||
if (CM.Options.BuildColor == 1) {
|
|
||||||
var target = '';
|
var target = '';
|
||||||
if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10';
|
if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10';
|
||||||
else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100';
|
else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100';
|
||||||
else target = 'Objects';
|
else target = 'Objects';
|
||||||
|
if (CM.Options.BuildColor == 1) {
|
||||||
for (var i in CM.Cache[target]) {
|
for (var i in CM.Cache[target]) {
|
||||||
l('productPrice' + Game.Objects[i].id).style.color = CM.Options.Colors[CM.Cache[target][i].color];
|
l('productPrice' + Game.Objects[i].id).style.color = CM.Options.Colors[CM.Cache[target][i].color];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -691,11 +691,11 @@ CM.Disp.UpdateBotTimerBarPosition = function() {
|
|||||||
*/
|
*/
|
||||||
CM.Disp.UpdateBuildings = function() {
|
CM.Disp.UpdateBuildings = function() {
|
||||||
if (Game.buyMode == 1) {
|
if (Game.buyMode == 1) {
|
||||||
if (CM.Options.BuildColor == 1) {
|
|
||||||
var target = '';
|
var target = '';
|
||||||
if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10';
|
if (Game.buyBulk == 10 && CM.Options.BulkBuildColor == 1) target = 'Objects10';
|
||||||
else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100';
|
else if (Game.buyBulk == 100 && CM.Options.BulkBuildColor == 1) target = 'Objects100';
|
||||||
else target = 'Objects';
|
else target = 'Objects';
|
||||||
|
if (CM.Options.BuildColor == 1) {
|
||||||
for (var i in CM.Cache[target]) {
|
for (var i in CM.Cache[target]) {
|
||||||
l('productPrice' + Game.Objects[i].id).style.color = CM.Options.Colors[CM.Cache[target][i].color];
|
l('productPrice' + Game.Objects[i].id).style.color = CM.Options.Colors[CM.Cache[target][i].color];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user