Commit 96eda19
committed
Fix: Meadow themeroom fill could disrupt room joining
This was uncovered by the debug fuzzer and was quickly reproducible once
I discovered the room-and-fill combination that could most easily cause
it (the "Circular, small" room). It was a known issue, with a comment
indicating it was simply too difficult to avoid and was a rare case
anyway. That's not good enough if it causes fuzzer crashes.
The fix is a lot of lines of code, but is a more general solution that
allows an arbitrary number of trees to be placed, rather than assuming
there will only be 1 tree.
There is still no guarantee that 2 trees won't be generated in some way
that blocks easy travel through the interior of the room.1 parent c0e9064 commit 96eda19
1 file changed
Lines changed: 51 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | | - | |
381 | | - | |
382 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
383 | 428 | | |
384 | 429 | | |
385 | 430 | | |
| |||
0 commit comments