[3.5-dev] Possible crash on cavern levels

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    [3.5-dev] Possible crash on cavern levels

    Since the removal of the in_bounds macros, I think it's possible to crash the game on cavern levels because the layout doesn't generate permanent walls outside of the cavern bounds.

    See init_cavern():

    Code:
    /* Fill the edges with perma-rock, and rest with rock */
    draw_rectangle(c, 0, 0, DUNGEON_HGT - 1, DUNGEON_WID - 1, FEAT_PERM_SOLID);
    fill_rectangle(c, 1, 1, DUNGEON_HGT - 2, DUNGEON_WID - 2, FEAT_WALL_SOLID);
    compared to the same code for the town:

    Code:
    /* Start with solid walls, and then create some floor in the middle */
    fill_rectangle(c, 0, 0, DUNGEON_HGT - 1, DUNGEON_WID - 1, FEAT_PERM_SOLID);
    fill_rectangle(c, 1, 1, c->height -2, c->width - 2, FEAT_FLOOR);
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
  • PowerWyrm
    Prophet
    • Apr 2008
    • 2986

    #2
    The best would be to ensure that everything outside cave bounds is FEAT_PERM_SOLID, so that nothing can be placed there.
    PWMAngband variant maintainer - check https://github.com/draconisPW/PWMAngband (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!

    Comment

    • eMeM
      Apprentice
      • Oct 2012
      • 75

      #3
      I'm playing current dev version and there is a display problem on cavern levels
      Attached Files

      Comment

      • scud
        Swordsman
        • Jan 2011
        • 323

        #4
        You've somehow managed to access the top secret multi-player mode.

        Shhhh. Tell no-one.

        Comment

        • Nick
          Vanilla maintainer
          • Apr 2007
          • 9634

          #5
          Originally posted by eMeM
          I'm playing current dev version and there is a display problem on cavern levels
          Yep, I've found that bug too. Refreshing the screen fixes it.
          One for the Dark Lord on his dark throne
          In the Land of Mordor where the Shadows lie.

          Comment

          • eMeM
            Apprentice
            • Oct 2012
            • 75

            #6
            Multiplayer on maze level
            Attached Files

            Comment

            Working...
            😀
            😂
            🥰
            😘
            🤢
            😎
            😞
            😡
            👍
            👎