Bugfixes
This commit is contained in:
@@ -550,8 +550,12 @@ public class Renderer implements ApplicationListener{
|
||||
drawThrusters(block, x, y, rotation, thrusterFrame);
|
||||
Draw.alpha(1f);
|
||||
|
||||
if(block.teamRegions[build.team.id] == block.teamRegion) Draw.color(build.team.color);
|
||||
|
||||
Drawf.spinSprite(block.teamRegions[build.team.id], x, y, rotation);
|
||||
|
||||
Draw.color();
|
||||
|
||||
Draw.scl();
|
||||
|
||||
Draw.reset();
|
||||
|
||||
@@ -134,12 +134,12 @@ public class SectorInfo{
|
||||
}
|
||||
|
||||
//if there are infinite waves and no win wave, add a win wave.
|
||||
if(winWave <= 0 && !attack){
|
||||
if(state.rules.sector != null && state.rules.sector.preset != null && state.rules.sector.preset.captureWave > 0){
|
||||
winWave = state.rules.sector.preset.captureWave;
|
||||
}else{
|
||||
winWave = 30;
|
||||
}
|
||||
if(winWave <= 0 && !attack && state.rules.sector.planet.allowWaves){
|
||||
winWave = 30;
|
||||
}
|
||||
|
||||
if(state.rules.sector != null && state.rules.sector.preset != null && state.rules.sector.preset.captureWave > 0){
|
||||
winWave = state.rules.sector.preset.captureWave;
|
||||
}
|
||||
|
||||
state.wave = wave;
|
||||
|
||||
@@ -116,7 +116,7 @@ public class ImpactReactor extends PowerGenerator{
|
||||
|
||||
Draw.blend(Blending.additive);
|
||||
for(int i = 0; i < plasmaRegions.length; i++){
|
||||
float r = size * tilesize - 3f + Mathf.absin(Time.time, 2f + i * 1f, 5f - i * 0.5f);
|
||||
float r = ((float)plasmaRegions[i].width * Draw.scl - 3f + Mathf.absin(Time.time, 2f + i * 1f, 5f - i * 0.5f));
|
||||
|
||||
Draw.color(plasma1, plasma2, (float)i / plasmaRegions.length);
|
||||
Draw.alpha((0.3f + Mathf.absin(Time.time, 2f + i * 2f, 0.3f + i * 0.05f)) * warmup);
|
||||
|
||||
Reference in New Issue
Block a user