mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-11 03:31:19 +03:00
Round maxProduction up
This commit is contained in:
parent
7938e02e78
commit
6af015cc05
@ -1,6 +1,7 @@
|
||||
package mindustry.desktop.steam;
|
||||
|
||||
import arc.*;
|
||||
import arc.math.*;
|
||||
import arc.struct.*;
|
||||
import arc.util.*;
|
||||
import com.codedisaster.steamworks.*;
|
||||
@ -99,13 +100,13 @@ public class SStats implements SteamUserStatsCallback{
|
||||
for(Sector sec : planet.sectors){
|
||||
if(sec.hasBase()){
|
||||
for(var v : sec.info.production.values()){
|
||||
total += (int)(v.mean * 60);
|
||||
if(v.mean > 0) total += v.mean * 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
SStat.maxProduction.max((int)total);
|
||||
SStat.maxProduction.max(Mathf.round(total));
|
||||
});
|
||||
|
||||
Events.run(Trigger.newGame, () -> Core.app.post(() -> {
|
||||
|
Loading…
Reference in New Issue
Block a user