Fixed power being set to NaN / Set splitter sprite to router
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 226 B |
Binary file not shown.
|
Before Width: | Height: | Size: 234 B After Width: | Height: | Size: 226 B |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 133 KiB |
@@ -48,6 +48,7 @@ public class Saves{
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void update(){
|
public void update(){
|
||||||
|
SaveSlot current = this.current;
|
||||||
|
|
||||||
if(!state.is(State.menu) && !state.gameOver && current != null && current.isAutosave()){
|
if(!state.is(State.menu) && !state.gameOver && current != null && current.isAutosave()){
|
||||||
time += Timers.delta();
|
time += Timers.delta();
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ package io.anuke.mindustry.maps;
|
|||||||
import io.anuke.ucore.util.GridMap;
|
import io.anuke.ucore.util.GridMap;
|
||||||
|
|
||||||
public class Sectors{
|
public class Sectors{
|
||||||
|
private static final int sectorSize = 256;
|
||||||
private GridMap<Sector> grid = new GridMap<>();
|
private GridMap<Sector> grid = new GridMap<>();
|
||||||
|
|
||||||
public Sectors(){
|
public Sectors(){
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import io.anuke.mindustry.world.meta.BlockGroup;
|
|||||||
import io.anuke.ucore.core.Timers;
|
import io.anuke.ucore.core.Timers;
|
||||||
|
|
||||||
public class Splitter extends Block{
|
public class Splitter extends Block{
|
||||||
protected float speed = 9f;
|
protected float speed = 8f;
|
||||||
|
|
||||||
public Splitter(String name){
|
public Splitter(String name){
|
||||||
super(name);
|
super(name);
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ public class PowerNode extends PowerBlock{
|
|||||||
|
|
||||||
for(int i = 0; i < entity.links.size; i++){
|
for(int i = 0; i < entity.links.size; i++){
|
||||||
Tile target = world.tile(entity.links.get(i));
|
Tile target = world.tile(entity.links.get(i));
|
||||||
if(shouldDistribute(tile, target)){
|
if(targets > 0 && shouldDistribute(tile, target)){
|
||||||
|
|
||||||
float transmit = Math.min(result, entity.power.amount);
|
float transmit = Math.min(result, entity.power.amount);
|
||||||
if(target.block().acceptPower(target, tile, transmit)){
|
if(target.block().acceptPower(target, tile, transmit)){
|
||||||
|
|||||||
Reference in New Issue
Block a user