Skip to content

Commit

Permalink
Correct support for removing railroads.
Browse files Browse the repository at this point in the history
A typo resulted in allowing the removal of the wrong railroads, and
preventing the removal of the correct ones.
  • Loading branch information
Auzzy committed Jul 26, 2020
1 parent 3eaab7e commit 68ee3d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion routes18xx/railroads.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def load(game, board, railroads_rows):
trains_str = railroad_args.get("trains")
if trains_str and trains_str.lower() == "removed":
name = railroad_args["name"]
if info.get("is_removable"):
if not info.get("is_removable"):
raise ValueError("Attempted to remove a non-removable railroad.")

railroad = RemovedRailroad.create(name)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='routes-18xx',
version='0.5',
version='0.5.1',
author="Austin Noto-Moniz",
author_email="mathfreak65@gmail.com",
description="Library for caluclating routes in 18xx train games.",
Expand Down

0 comments on commit 68ee3d4

Please sign in to comment.