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-23 22:35:52 -07:00
2021-09-23 22:21:49 -07:00
2021-09-12 21:06:26 -07:00
2021-09-12 21:06:26 -07:00
2021-09-24 16:37:27 -07:00
2021-08-31 23:22:22 -07:00
2021-09-24 17:39:31 -07:00
2021-09-24 16:37:27 -07:00
2021-03-21 02:55:42 -04:00
2021-03-21 02:55:42 -04:00
2021-09-24 17:48:15 -07:00
2021-09-06 15:43:59 -07:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-09-24 17:39:31 -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-23 23:26:28 -07:00
2021-09-02 13:19:51 -04:00
2021-09-12 21:06:26 -07:00
2021-09-12 21:06:26 -07:00
2021-09-24 17:39:31 -07:00
2021-09-11 22:23:47 -07:00
2021-08-05 13:35:21 -04:00
2021-08-05 13:35:21 -04:00
2021-09-19 21:49:54 -07:00
2021-09-24 16:37:27 -07:00
2021-09-12 21:06:27 -07:00
2021-09-06 20:12:48 -07:00
2020-07-19 21:37:40 -04:00
2021-09-05 20:07:18 -07:00
2021-02-25 19:38:25 -05:00
2021-09-14 20:23:22 -07:00
2021-02-25 17:23:59 -05:00
2021-09-07 09:43:48 -07:00
2021-09-06 18:56:39 -07:00
2021-09-12 21:06:26 -07:00
2021-09-12 21:06:26 -07:00
2021-09-24 17:39:31 -07:00
2021-02-25 17:23:59 -05:00
2021-09-23 23:02:46 -07:00
2021-04-17 00:50:04 -04:00
2021-09-24 16:37:27 -07:00
2021-09-24 16:37:27 -07:00
2021-02-25 17:23:59 -05:00
2021-09-10 19:37:33 -07:00
2021-09-10 19:37:31 -07:00
2021-09-19 21:49:54 -07:00
2021-02-25 17:23:59 -05:00
2021-09-06 18:56:39 -07:00
2021-09-12 21:06:26 -07:00
2021-09-11 02:15:20 -07:00
2021-02-25 17:23:59 -05:00
2021-09-14 20:23:22 -07:00
2021-02-25 17:23:59 -05:00
2021-09-05 16:59:05 -07:00
2021-03-21 02:55:42 -04: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-12 21:06:27 -07:00
2021-08-12 00:20:40 -04:00
2021-09-03 12:08:31 -07:00
2021-09-06 18:56:39 -07:00
2021-09-06 18:56:39 -07:00
2021-09-12 21:06:26 -07:00
2021-09-12 21:06:26 -07:00
2021-09-22 20:04:34 -07:00
2021-09-06 18:56:39 -07:00
2021-09-12 21:06:27 -07:00
2021-09-12 21:06:27 -07:00
2021-04-17 00:50:04 -04:00
2021-09-24 17:48:15 -07:00
2021-09-24 16:37:27 -07:00
2021-09-06 18:56:39 -07:00
2021-05-25 15:23:34 -04:00
2021-09-24 17:39:31 -07:00
2021-09-24 17:48:15 -07:00
2020-12-25 20:17:01 -05:00
2020-12-25 20:17:01 -05:00
2021-09-01 14:34:55 -07:00
2021-09-01 14:34:55 -07:00
2021-09-12 21:06:26 -07:00
2021-09-12 21:06:26 -07:00
2020-11-04 12:06:57 -05:00
2020-11-04 12:06:57 -05:00
2021-08-27 12:28:35 -07:00
2021-08-27 12:28:35 -07:00