Rearrange editor tool palette and refactor the code to make it easier to rearrange again in the future

- New buttons: "place forcecage", "place stone block", and (currently non-functional) "erase town entrance"
- Forcecages with no creature inside them are now permanent
- Fix forcecages leaving the top half behind when they disappear
This commit is contained in:
2015-06-05 02:13:41 -04:00
parent c3828141a0
commit 548825745b
6 changed files with 101 additions and 93 deletions

View File

@@ -827,6 +827,7 @@ void draw_terrain(short mode) {
else unexplored_area[i][j] = 1 - is_explored(where_draw.x,where_draw.y);
}
forcecage_locs.clear();
for(q = 0; q < 9; q++) {
for(r = 0; r < 9; r++) {
where_draw = (is_out()) ? univ.party.p_loc : center;