Skip to content

Commit

Permalink
make start not deletable
Browse files Browse the repository at this point in the history
  • Loading branch information
evemartin committed May 15, 2024
1 parent 92c82ae commit 20237eb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions game/static/game/js/level_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -1335,10 +1335,9 @@ ocargo.LevelEditor = function(levelId) {

} else if (mode === modes.DELETE_HOUSE_MODE && existingNode) {
if (isHouseCoordinate(coordMap)) {
houseNodes.splice(houseNodes.indexOf(ocargo.Node.findNodeByCoordinate(coordMap, nodes)), 1)
houseNodes.splice(houseNodes.indexOf(ocargo.Node.findNodeByCoordinate(coordMap, nodes)), 1);
markAsBackground(coordMap);
}

markAsBackground(coordMap);
} else if (mode === modes.ADD_ROAD_MODE || mode === modes.DELETE_ROAD_MODE) {
strikeStart = coordMap;
markAsSelected(coordMap);
Expand Down

0 comments on commit 20237eb

Please sign in to comment.