Skip to content

Commit

Permalink
Fix: Fill in missing S_bridge code (reported by cbus)
Browse files Browse the repository at this point in the history
  • Loading branch information
elunna committed Nov 15, 2023
1 parent 769da4b commit 734e3b3
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions doc/Guidebook.mn
Original file line number Diff line number Diff line change
Expand Up @@ -4617,6 +4617,7 @@ g S_gremlin (gremlin)
h S_humanoid (humanoid)
\- S_hwall (horizontal wall)
\. S_ice (ice)
\. S_bridge (bridge)
\, S_grass (grass)
i S_imp (imp or minor demon)
I S_invisible (invisible monster)
Expand Down
1 change: 1 addition & 0 deletions doc/Guidebook.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5343,6 +5343,7 @@

- S_hwall (horizontal wall)
. S_ice (ice)
. S_bridge (bridge)
i S_imp (imp or minor demon)
I S_invisible (invisible monster)
J S_jabberwock (jabberwock)
Expand Down
9 changes: 5 additions & 4 deletions src/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -1842,13 +1842,14 @@ xchar x, y;
case ICE:
idx = S_ice;
break;
case BRIDGE:
idx = S_bridge;
break;
case GRASS:
idx = S_grass;
/*engr_override = TRUE;*/
break;
case BRIDGE:
idx = S_bridge;
break;

case AIR:
idx = S_air;
break;
Expand Down Expand Up @@ -1896,7 +1897,6 @@ xchar x, y;
idx = S_room;
break;
}

return cmap_to_glyph(idx);
}

Expand Down Expand Up @@ -1976,6 +1976,7 @@ back_to_defsym(xchar x, xchar y)
case THRONE: idx = S_throne; break;
case LAVAPOOL: idx = S_lava; break;
case ICE: idx = S_ice; break;
case BRIDGE: idx = S_bridge; break;
case GRASS: idx = S_grass; break;
case AIR: idx = S_air; break;
case CLOUD: idx = S_cloud; break;
Expand Down
1 change: 1 addition & 0 deletions src/drawing.c
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,7 @@ struct symparse loadsyms[] = {
{ SYM_PCHAR, S_vent, "S_vent" },
{ SYM_PCHAR, S_pool, "S_pool" },
{ SYM_PCHAR, S_ice, "S_ice" },
{ SYM_PCHAR, S_bridge, "S_bridge" },
{ SYM_PCHAR, S_grass, "S_grass" },
{ SYM_PCHAR, S_lava, "S_lava" },
{ SYM_PCHAR, S_vodbridge, "S_vodbridge" },
Expand Down
4 changes: 2 additions & 2 deletions src/invent.c
Original file line number Diff line number Diff line change
Expand Up @@ -3608,10 +3608,10 @@ char *buf;
cmap = S_throne; /* "opulent throne" */
else if (is_lava(x, y))
cmap = S_lava; /* "molten lava" */
else if (is_bridge(x, y))
cmap = S_bridge;
else if (is_ice(x, y))
cmap = S_ice; /* "ice" */
else if (is_bridge(x, y))
cmap = S_bridge;
else if (is_pool(x, y))
dfeature = "pool of water";
else if (IS_GRASS(ltyp))
Expand Down

0 comments on commit 734e3b3

Please sign in to comment.