projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8f9b5dc
)
update statistics again if coins are collected
author
Matthias Braun
<matze@braunis.de>
Mon, 29 Nov 2004 14:54:05 +0000
(14:54 +0000)
committer
Matthias Braun
<matze@braunis.de>
Mon, 29 Nov 2004 14:54:05 +0000
(14:54 +0000)
SVN-Revision: 2224
src/object/coin.cpp
patch
|
blob
|
history
diff --git
a/src/object/coin.cpp
b/src/object/coin.cpp
index
0799ef0
..
359b452
100644
(file)
--- a/
src/object/coin.cpp
+++ b/
src/object/coin.cpp
@@
-8,6
+8,7
@@
#include "sector.h"
#include "scene.h"
#include "gameobjs.h"
+#include "statistics.h"
Coin::Coin(const Vector& pos)
{
@@
-37,6
+38,7
@@
Coin::collect()
{
Sector::current()->player->get_status().incCoins();
Sector::current()->add_object(new BouncyCoin(get_pos()));
+ global_stats.add_points(COINS_COLLECTED_STAT, 1);
remove_me();
}