Merge pull request #10011 from GinjaNinja32/robot-inventory

Changes cyborg HUD to not display a superfluous empty row
This commit is contained in:
Zuhayr
2015-07-06 05:55:34 +09:30

View File

@@ -210,7 +210,7 @@ var/obj/screen/robot_inventory
if(!r.robot_modules_background)
return
var/display_rows = round((r.module.modules.len) / 8) +1 //+1 because round() returns floor of number
var/display_rows = -round(-(r.module.modules.len) / 8)
r.robot_modules_background.screen_loc = "CENTER-4:16,SOUTH+1:7 to CENTER+3:16,SOUTH+[display_rows]:7"
r.client.screen += r.robot_modules_background