[Super-tux-commit] supertux/src/object coin.cpp,1.3,1.4
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2004-11-29 14:54:15
|
Update of /cvsroot/super-tux/supertux/src/object In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30750/object Modified Files: coin.cpp Log Message: update statistics again if coins are collected Index: coin.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/object/coin.cpp,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- coin.cpp 24 Nov 2004 23:10:07 -0000 1.3 +++ coin.cpp 29 Nov 2004 14:54:05 -0000 1.4 @@ -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 @@ { Sector::current()->player->get_status().incCoins(); Sector::current()->add_object(new BouncyCoin(get_pos())); + global_stats.add_points(COINS_COLLECTED_STAT, 1); remove_me(); } |