1
0
Fork 0

I've heard that endless loops aren't overly popular.

This commit is contained in:
mfranz 2006-07-24 17:52:20 +00:00
parent 77019014d6
commit 447c06ecd3

View file

@ -274,8 +274,11 @@ void HUD::Tape::draw(void) // (HUD_scale * pscale)
for (int i = 0; ; i++) { for (int i = 0; ; i++) {
float v = vstart + i * _minor_divs; float v = vstart + i * _minor_divs;
if (!_modulo && (v < _input.min() || v > _input.max())) if (!_modulo)
continue; if (v < _input.min())
continue;
else if (v > _input.max())
break;
float y = _y + (v - vmin) * factor(); float y = _y + (v - vmin) * factor();
@ -486,8 +489,11 @@ void HUD::Tape::draw(void) // (HUD_scale * pscale)
for (int i = 0; ; i++) { for (int i = 0; ; i++) {
float v = vstart + i * _minor_divs; float v = vstart + i * _minor_divs;
if (!_modulo && (v < _input.min() || v > _input.max())) if (!_modulo)
continue; if (v < _input.min())
continue;
else if (v > _input.max())
break;
float x = _x + (v - vmin) * factor(); float x = _x + (v - vmin) * factor();