1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

ads-game:: better tank display

This commit is contained in:
Zeno Rogue 2022-09-12 13:20:44 +02:00
parent d4d7842e5a
commit d5251664cb

View File

@ -77,7 +77,7 @@ void display(int id, int y, ld val, ld maxv, ld tank, ld unit) {
}
for(ld u=tank; u<maxv-1e-3; u+=tank) {
ld at = sta + siz * u / maxv;
ld at = sta + siz * (1 - u / maxv);
curvepoint(atscreenpos(at, ctr, 1) * C0);
curvepoint(atscreenpos(at, bot, 1) * C0);
queuecurve(sId, 0x80, 0, PPR::ZERO);