Cleanup redundant machine stuff (#18494)

This commit is contained in:
AffectedArc07
2022-07-27 21:25:39 +01:00
committed by GitHub
parent 53c4aad491
commit 2f5cec832d
26 changed files with 80 additions and 627 deletions
+2 -1
View File
@@ -132,7 +132,7 @@
var/mob/living/M = usr
if(!Adjacent(M))
return
M.set_machine(src)
if(href_list["next_page"])
if(curr_page == pages + 1)
return //Don't need that at all, but anyway.
@@ -142,6 +142,7 @@
screen = SCREEN_PAGE_INNER
curr_page++
playsound(loc, "pageturn", 50, TRUE)
else if(href_list["prev_page"])
if(curr_page == 0)
return