diff options
-rw-r--r-- | engines/griffon/draw.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/griffon/draw.cpp b/engines/griffon/draw.cpp index d224c9f8bc..9cc5ae8bd6 100644 --- a/engines/griffon/draw.cpp +++ b/engines/griffon/draw.cpp @@ -1113,10 +1113,7 @@ void GriffonEngine::drawPlayer() { int ww = 14 * _player.hp / _player.maxHp; - if (ww > 14) - ww = 14; - if (ww < 1) - ww = 1; + ww = CLIP(ww, 1, 14); rcDest.setWidth(ww); rcDest.setHeight(2); |