Files
VVVVVV/desktop_version/src
Misa cace685020 Add POS_MOD macro and use for all positive modulos
This macro is to make it so it won't be error-prone to write the
semi-confusing `(a % b + b) % b` statement, and you can just use an easy
macro instead.

Currently, the only places a positive modulo is needed is when switching
tilesets, enemies, and warp directions in the editor, as well as when
getting a tile in the tower, since towers just repeat themselves
vertically. Towers used this weird while-loop to sort of emulate a
modulo, which isn't half-bad, but is unnecessary, and I don't think any
compiler would recognize it as a modulo. (And if it's not optimized to a
proper modulo... what happens if the number being moduloed is really,
really big?)
2021-09-24 17:48:15 -07:00
..
2021-09-24 16:37:27 -07:00
2021-08-31 23:22:22 -07:00
2021-09-24 16:37:27 -07:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-08-31 15:09:51 -07:00
2021-09-06 18:56:39 -07:00
2021-09-22 19:58:31 -07:00
2021-09-11 22:23:47 -07:00
2021-09-24 16:37:27 -07:00
2021-09-06 20:12:48 -07:00
2021-02-25 19:38:25 -05:00
2021-09-14 20:23:22 -07:00
2021-09-07 09:43:48 -07:00
2021-09-06 18:56:39 -07:00
2021-09-24 16:37:27 -07:00
2021-09-24 16:37:27 -07:00
2021-09-06 18:56:39 -07:00
2021-09-14 20:23:22 -07:00
2021-09-14 20:23:22 -07:00
2021-09-14 20:23:22 -07:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-09-24 16:37:27 -07:00
2021-09-06 18:56:39 -07:00
2021-09-01 14:34:55 -07:00
2021-09-01 14:34:55 -07:00
2020-11-04 12:06:57 -05:00
2020-11-04 12:06:57 -05:00