use new icons in pathable

develop
Myk Taylor 2023-01-29 00:35:12 -08:00
parent c2d6debcd8
commit 2a3710202a
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

@ -1,6 +1,7 @@
#include "modules/Gui.h"
#include "modules/Maps.h"
#include "modules/Screen.h"
#include "modules/Textures.h"
#include "Debug.h"
#include "LuaTools.h"
@ -38,6 +39,11 @@ static void paintScreen(df::coord target, bool skip_unrevealed = false) {
long pathable_tile_texpos = 779;
long unpathable_tile_texpos = 782;
long on_off_texpos = Textures::getOnOffTexposStart();
if (on_off_texpos > 0) {
pathable_tile_texpos = on_off_texpos + 0;
unpathable_tile_texpos = on_off_texpos + 1;
}
auto dims = Gui::getDwarfmodeViewDims().map();
for (int y = dims.first.y; y <= dims.second.y; ++y) {