diff --git a/rogueviz/ads/resources.cpp b/rogueviz/ads/resources.cpp index 6e45fffd..e4363400 100644 --- a/rogueviz/ads/resources.cpp +++ b/rogueviz/ads/resources.cpp @@ -35,14 +35,14 @@ void display(int id, int y, ld val, ld maxv, ld tank, ld unit) { auto& shape = rsrc_shape[id][0]; int N = isize(shape); - ld ctr = 20*y+10; + ld ctr = current_display->ycenter - current_display->radius + 20 * y; + ld sta = current_display->xcenter - current_display->radius + 20; - for(int i=0; i