diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-19 12:34:18 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-09-19 12:34:18 +0000 |
commit | 27d5346e9faf183f5bf9c8a92a47897998c9d60c (patch) | |
tree | 514bbdc7cdf07cde8ed50160226c776e360d270e /src/engine.cpp | |
parent | 2c4d4ecc19fc8308b2772e4ffe6570ca362264d1 (diff) | |
download | mana-27d5346e9faf183f5bf9c8a92a47897998c9d60c.tar.gz mana-27d5346e9faf183f5bf9c8a92a47897998c9d60c.tar.bz2 mana-27d5346e9faf183f5bf9c8a92a47897998c9d60c.tar.xz mana-27d5346e9faf183f5bf9c8a92a47897998c9d60c.zip |
Mostly code cleanups related to commits in past two days.
* Replaced custom function FIND_PATH with AC_PATH_PROG, used for finding sdl-config.
* Removed -lphysfs from Makefile.am which should be added automatically already.
* Actually show the overweight message, and only show it once for each time weight
goes above half the max weight.
* Surfaces passed to SDL_BlitSurface shouldn't be locked according to the manual.
* Minimal fps limit is now 10 fps.
* Reverted change by Bertram that hardcoded the updatehost value.
Diffstat (limited to 'src/engine.cpp')
-rw-r--r-- | src/engine.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/engine.cpp b/src/engine.cpp index 8194e00b..0209fbbc 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -467,16 +467,17 @@ void Engine::draw() being->drawSpeech(graphics); } - if (autoTarget) { + if (autoTarget) + { if (autoTarget->getType() == Being::PLAYER) { graphics->drawText("[TARGET]", - autoTarget->text_x+15, - autoTarget->text_y-60, + autoTarget->text_x + 15, + autoTarget->text_y - 60, gcn::Graphics::CENTER); - - } else { - + } + else + { graphics->drawText("[TARGET]", autoTarget->text_x + 60, autoTarget->text_y, |