Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
Nils Bartels committed Dec 21, 2023
1 parent 5f40705 commit e67205b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/rooms_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def show

@map["desks"].push(entry)

@map["width"] = @map["width"] + 1 if desk.pos_x > @map["width"]
@map["height"] = @map["height"] + 1 if desk.pos_y > @map["height"]
@map["width"] = desk.pos_x if desk.pos_x >= @map["width"]
@map["height"] = desk.pos_y if desk.pos_y >= @map["height"]
end

# we add one as a border here
Expand Down

0 comments on commit e67205b

Please sign in to comment.