diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-05-27 21:39:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-05-27 21:39:10 +0300 |
commit | f2dba51be00b6c67b6d1b8924cac8019a3bcd000 (patch) | |
tree | bc40b96606b74c80e60fb21064b1e8883dee2db6 /src/text.cpp | |
parent | 420664f4025b261674e0cdea503d43fb95beae38 (diff) | |
download | manaplus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.tar.gz manaplus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.tar.bz2 manaplus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.tar.xz manaplus-f2dba51be00b6c67b6d1b8924cac8019a3bcd000.zip |
Add strong typed bool type Move.
Diffstat (limited to 'src/text.cpp')
-rw-r--r-- | src/text.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/text.cpp b/src/text.cpp index bec055f60..8dca7d366 100644 --- a/src/text.cpp +++ b/src/text.cpp @@ -134,9 +134,10 @@ void Text::setColor(const Color *const color) } } -void Text::adviseXY(const int x, const int y, const bool move) +void Text::adviseXY(const int x, const int y, + const Move move) { - if (textManager && move) + if (textManager && move == Move_true) { textManager->moveText(this, x - mXOffset, y); } |