diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-15 22:21:45 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-02-15 22:25:38 +0100 |
commit | e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3 (patch) | |
tree | b07ce915d1e5d4cdd83cf4ab858c69d782ab0fe0 /src/being.cpp | |
parent | 08c9cde4726f94698ea938d464cd1de95b7be587 (diff) | |
download | mana-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.tar.gz mana-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.tar.bz2 mana-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.tar.xz mana-e4d63db096901c1d67d0feb72d77bc5d0c8ba1b3.zip |
Removed unnecessary parenthesis at constructors
When not passing any parameters to constructors, there is no reason for
using parenthesis.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 86811e33..7893c97d 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -99,7 +99,7 @@ Being::Being(int id, int job, Map *map): { setMap(map); - mSpeechBubble = new SpeechBubble(); + mSpeechBubble = new SpeechBubble; if (instances == 0) { @@ -440,7 +440,7 @@ void Being::logic() } // Update sprite animations - if (mUsedTargetCursor != NULL) + if (mUsedTargetCursor) mUsedTargetCursor->update(tick_time * 10); for (int i = 0; i < VECTOREND_SPRITE; i++) @@ -471,7 +471,7 @@ void Being::draw(Graphics *graphics, int offsetX, int offsetY) const int px = mPx + offsetX; int py = mPy + offsetY; - if (mUsedTargetCursor != NULL) + if (mUsedTargetCursor) { mUsedTargetCursor->draw(graphics, px, py); } |