Skip to content

Commit

Permalink
Fix log error in room navigation and remove unnecessary log warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Jan 29, 2024
1 parent 63b9e69 commit a95e841
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion game/nqtr_tool/nav_label_fun.rpy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ label change_room(room_id = None):
if room_id:
$ new_room = get_room_by_id(room_id = room_id, rooms = rooms)
if new_room is None:
$ log_error("Room with id [room_id] not found")
$ log_error("Room with id [room_id] not found", renpy.get_filename_line())
return
python:
prev_room = cur_room
Expand Down
12 changes: 0 additions & 12 deletions pythonpackages/nqtr/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ def xalign(self) -> Union[int, float]:
if self._align != None:
return self._align[0]
else:
log_warn(
"In the button "
+ self.name
+ ", you have set align to None, so return 0",
"nqtr.button.Button.xalign",
)
return 0

@xalign.setter
Expand All @@ -168,12 +162,6 @@ def yalign(self) -> Union[int, float]:
if self._align != None:
return self._align[1]
else:
log_warn(
"In the button "
+ self.name
+ ", you have set align to None, so return 0",
"nqtr.button.Button.yalign",
)
return 0

@yalign.setter
Expand Down

0 comments on commit a95e841

Please sign in to comment.