NTStation / NTstation13

NTstation13 - A version of Spacestation13, forked from /tg/station13.
36 stars 205 forks source link

Fixes errors caused by copytext being a shit #971

Closed MrStonedOne closed 9 years ago

MrStonedOne commented 9 years ago

Basically, copytext's first argument is inclusive, but its 2nd argument isn't.

so copytext("123456789", 2, 8) returns 234567.

When I googled "byond copytext" (to see how it worked in byond and if it used 1 or 0 based indexing) the first link is http://www.byond.com/docs/guide/chap15.html and this does nothing to spell this out.

The reference guide (that i should have used) spells this out more clearly, but it is confusing none the less: http://www.byond.com/docs/ref/info.html#/proc/copytext