Skip to content

Fix unexpected newlines in statfiles.

Created by: gbasood

Newlines were appearing in, primarily:

  • Mob names, primarily those changed via VV
  • Antag objective descriptions entered by admins

This should catch all the current occurrences of those and strip newlines from them. Which means less matches lost forever without someone getting their valid. I tested that define in a sandboxed environment, as well.

world
	fps = 25		// 25 frames per second
	icon_size = 32	// 32x32 icon size by default

	view = 6		// show up to 6 tiles outward from center (13x13 view)


// Make objects move 8 pixels per tick when walking

#define STRIP_CRLF(S) replacetextEx(S, "\n", null)


mob
	step_size = 8
	desc = "Test\nTest"
	Login()
		..()
		world << desc
		world << "Hi [STRIP_CRLF(desc)]"

obj
	step_size = 8

Merge request reports