Fixes bug with circuit board name display (#9312)

This commit is contained in:
armrha
2020-07-09 02:09:04 -07:00
committed by GitHub
parent 82d78e14d6
commit 0fa5f77069
4 changed files with 9 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
#ifdef T_BOARD
#error T_BOARD already defined elsewhere, we can't use it.
#endif
#define T_BOARD(name) "circuit board (" + (name) + ")"
#define T_BOARD(name) "" + "circuit board " + "(" + (name) + ")"
/obj/item/circuitboard
name = "circuit board"

View File

@@ -1,7 +1,7 @@
#ifdef T_BOARD_MECHA
#error T_BOARD_MECHA already defined elsewhere, we can't use it.
#endif
#define T_BOARD_MECHA(name) "exosuit module circuit board (" + (name) + ")"
#define T_BOARD_MECHA(name) "" + "exosuit module circuit board " + "(" + (name) + ")"
/obj/item/circuitboard/mecha
name = "exosuit circuit board"

View File

@@ -1,4 +1,4 @@
#define T_BOARD_MECHA(name) "vehicle software (" + (name) + ")"
#define T_BOARD_MECHA(name) "" + "vehicle software " + "(" + (name) + ")"
/obj/item/circuitboard/exosystem
name = "vehicle software template"

View File

@@ -0,0 +1,6 @@
author: armrha
delete-after: True
changes:
- rscadd: "Modified the define function to bypass bug from http://www.byond.com/forum/post/2061007 where the preprocessor inappropriately interprets a parenthesis in a string so that circuitboards display their type and name properly again"