Files
CHOMPStation2/code/__defines/text.dm
CHOMPStation2 02f08bc7de [MIRROR] Ports TGStation fix to text input trimming (#7973)
Co-authored-by: Runa Dacino <dacinoorder@gmail.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
2024-03-16 14:11:41 +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)