PatR
f86ab67d20
mazexy() again
...
Some maze code treats row y_maze_max and column x_maze_max as being
in play, other parts treat them as out. mazexy() was doing both; the
first loop to choose a random spot allowed them, the second loop to
try every possible spot disallowed them. Make those be consistent.
I think the extreme row and column are both expected to be solid wall
so failing to consider them might not be causing any problems.
While in there, change mazexy() to not set cc->{x,y} until it has
found a viable spot instead of potentionally making that assignment
dozens or hundreds of times. The only difference there is that 'cc'
won't have been assigned any value if panic() gets called.
2022-03-24 11:15:37 -07:00
..
2022-02-04 09:41:30 -05:00
2022-02-25 10:39:45 -08:00
2022-03-22 10:48:23 -07:00
2022-03-17 18:10:38 -04:00
2022-03-15 11:34:48 +02:00
2022-03-18 18:33:36 +02:00
2022-03-21 12:32:07 -07:00
2022-03-22 10:48:23 -07:00
2022-03-16 17:49:29 -04:00
2022-03-18 20:33:13 -04:00
2022-03-21 18:33:34 -07:00
2022-02-20 13:47:31 -08:00
2022-03-18 10:19:04 +02:00
2022-03-07 02:06:55 -08:00
2022-03-19 20:50:40 +09:00
2022-03-15 11:34:48 +02:00
2022-02-23 20:28:55 +02:00
2022-03-17 18:10:38 -04:00
2022-03-18 10:19:04 +02:00
2022-03-16 17:59:23 -04:00
2022-03-22 10:48:23 -07:00
2022-03-18 10:19:04 +02:00
2022-03-18 10:19:04 +02:00
2022-02-24 17:13:23 +02:00
2022-03-22 10:48:23 -07:00
2021-08-10 13:35:25 -04:00
2022-03-16 18:50:17 -04:00
2022-03-21 12:32:07 -07:00
2022-03-21 12:32:07 -07:00
2022-03-16 21:34:21 -04:00
2022-03-21 12:32:07 -07:00
2022-03-16 16:43:42 +02:00
2021-01-26 21:06:16 -05:00
2022-03-16 18:18:52 -04:00
2022-03-12 17:25:54 -08:00
2022-03-24 19:33:37 +02:00
2022-03-19 20:49:00 -04:00
2022-03-07 02:06:55 -08:00
2022-03-22 11:33:17 -07:00
2019-07-13 00:17:23 -04:00
2022-02-23 20:28:55 +02:00
2022-02-23 20:28:55 +02:00
2022-03-07 02:06:55 -08:00
2022-03-17 17:14:12 -04:00
2022-02-23 12:53:09 +02:00
2022-02-20 21:18:03 +02:00
2022-03-18 10:19:04 +02:00
2022-03-21 12:32:07 -07:00
2022-02-09 22:49:25 +02:00
2022-03-23 13:20:26 -07:00
2021-12-16 15:56:52 -08:00
2022-03-24 11:15:37 -07:00
2022-03-12 17:25:54 -08:00
2022-03-16 18:18:52 -04:00
2022-03-21 18:11:26 -07:00
2022-03-16 18:50:17 -04:00
2022-03-18 10:19:04 +02:00
2022-02-02 21:26:01 -05:00
2022-02-02 11:55:38 -08:00
2022-03-16 18:18:52 -04:00
2022-03-18 10:19:04 +02:00
2022-03-07 13:21:17 -08:00
2022-03-15 18:24:49 +02:00
2022-03-22 10:45:20 +02:00
2022-03-22 09:16:19 +02:00
2022-03-17 16:56:25 -04:00
2021-08-21 07:59:18 -04:00
2022-03-18 20:33:13 -04:00
2022-03-18 20:33:13 -04:00
2022-03-23 12:08:46 +02:00
2022-03-22 11:33:17 -07:00
2022-03-02 13:09:42 -08:00
2022-03-22 14:30:21 -07:00
2022-03-22 11:33:17 -07:00
2022-03-12 17:25:54 -08:00
2022-03-18 10:19:04 +02:00
2022-03-18 10:19:04 +02:00
2022-02-12 07:45:46 -08:00
2022-03-22 11:33:17 -07:00
2022-01-05 17:35:33 +02:00
2022-02-23 20:28:55 +02:00
2022-03-16 18:41:45 -04:00
2022-01-29 11:13:01 -08:00
2022-02-02 15:33:49 -05:00
2022-03-16 21:42:00 -04:00
2021-12-30 19:16:33 +02:00
2022-03-16 21:42:00 -04:00
2022-03-16 18:41:45 -04:00
2022-03-18 10:19:04 +02:00
2021-12-16 15:56:52 -08:00
2022-02-20 17:29:37 +02:00
2022-03-18 10:19:04 +02:00
2022-03-22 11:06:28 +02:00
2022-03-14 09:48:19 -04:00
2022-03-22 10:48:23 -07:00
2022-03-18 10:19:04 +02:00
2021-12-04 15:59:30 -05:00
2022-02-09 22:49:25 +02:00
2022-03-09 07:06:37 -08:00
2022-01-09 14:18:10 -05:00
2022-03-16 21:42:00 -04:00
2021-01-26 21:06:16 -05:00
2022-03-21 12:32:07 -07:00
2022-02-28 22:21:37 +02:00
2022-03-19 18:10:11 -07:00
2022-02-23 20:28:55 +02:00
2022-03-16 18:18:52 -04:00
2022-02-23 12:53:09 +02:00
2022-03-16 21:34:21 -04:00
2022-03-18 10:19:04 +02:00
2022-03-22 10:48:23 -07:00
2022-03-16 16:19:30 -07:00
2022-03-18 10:19:04 +02:00
2021-12-07 15:54:46 -08:00
2022-03-02 14:43:12 -08:00
2022-02-09 22:49:25 +02:00
2022-03-17 17:14:12 -04:00