Files
VOREStation/code/__defines/text.dm
Runa Dacino ef646ecf98 fix(text_input): ports TG fix to length trim (#15833)
original commit: df4397565f

local changes: adds new _defines file text.dm to start collecting text specific defines for better code readability
2024-03-15 11:42:27 +01:00

11 lines
342 B
Plaintext

/**
* Holds global defines for use in text input procedures
*/
/**
* stuff like `copytext(input, length(input))` will trim the last character of the input,
* because DM does it so it copies until the char BEFORE the `end` arg, so we need to bump `end` by 1 in these cases.
*/
#define PREVENT_CHARACTER_TRIM_LOSS(integer) (integer + 1)