Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion engine/src/main/java/org/destinationsol/game/SolGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public void startGame(String shipName, boolean isNewGame, EntitySystemManager en
Timer.schedule(new Timer.Task() {
@Override
public void run() {
if (!hero.isTranscendent()) {
if (!hero.isTranscendent() && !isTutorial()) {
saveShip();
// Console.getInstance().println("Game saved");
}
Expand Down
4 changes: 2 additions & 2 deletions engine/src/main/java/org/destinationsol/game/StarPort.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public void update(SolGame game) {
if (ship != null && ship.getMoney() >= FARE && ship.getPosition().dst(position) < .05f * SIZE) {
ship.setMoney(ship.getMoney() - FARE);
Transcendent transcendent = new Transcendent(ship, fromPlanet, toPlanet, game);
if (transcendent.getShip().getPilot().isPlayer()) {
if (transcendent.getShip().getPilot().isPlayer() && !game.isTutorial()) {
SaveManager.saveWorld(game.getWorldConfig());
game.getHero().setTranscendent(transcendent);
}
Expand Down Expand Up @@ -402,7 +402,7 @@ public void update(SolGame game) {
ship.setPos(position);
ship.setVelocity(new Vector2());
SolShip ship = this.ship.toObject(game);
if (ship.getPilot().isPlayer()) {
if (ship.getPilot().isPlayer() && !game.isTutorial()) {
game.getHero().setSolShip(ship, game);
SaveManager.saveWorld(game.getWorldConfig());
}
Expand Down