Cleanup & bugfixes

This commit is contained in:
Anuken
2022-02-16 13:07:28 -05:00
parent 427d43039b
commit 616e6664fc
3 changed files with 3 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ abstract class BoundedComp implements Velc, Posc, Healthc, Flyingc{
float bot = 0f, left = 0f, top = world.unitHeight(), right = world.unitWidth();
//TODO hidden map rules only apply to player teams? should they?
if(state.rules.borderDarkness && !team.isAI()){
if(state.rules.limitMapArea && !team.isAI()){
bot = state.rules.limitY * tilesize;
left = state.rules.limitX * tilesize;
top = state.rules.limitHeight * tilesize + bot;

View File

@@ -31,5 +31,5 @@ public enum BlockFlag{
public final static BlockFlag[] all = values();
/** Values for logic only. Filters out some internal flags. */
public final static BlockFlag[] allLogic = {core, storage, generator, turret, factory, repair, rally, battery, reactor};
public final static BlockFlag[] allLogic = {core, storage, generator, turret, factory, repair, battery, reactor};
}