wurstscript / WurstStdlib2

WurstScript Standard Library Version 2
Apache License 2.0
55 stars 53 forks source link

forUnitsInRangeCounted does not stop after x counts #167

Closed StN-NL closed 5 years ago

StN-NL commented 5 years ago

It appears that forUnitsInRangeCounted does not stop after x counts, it does the same thing as forUnitsInRange.

Example: here it iterates through 5 instead of 3 units: Code snippet: https://bin.wurstlang.org/wayatoviho.wurst Picture: https://pasteboard.co/HV2CIIj.png

Frotty commented 5 years ago

->stdlib issue. The "count" functions use the "count" natrives, it's not the same code. But @WaterKnight informed me that they are apparently broken. Will update with a custom implementation.

StN-NL commented 5 years ago

Cool!

Frotty commented 5 years ago

not done yet <,p