projects
/
supertux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
348f886
)
typo
author
Christoph Sommer
<mail@christoph-sommer.de>
Thu, 3 Jan 2008 18:29:01 +0000
(18:29 +0000)
committer
Christoph Sommer
<mail@christoph-sommer.de>
Thu, 3 Jan 2008 18:29:01 +0000
(18:29 +0000)
SVN-Revision: 5247
src/statistics.cpp
patch
|
blob
|
history
diff --git
a/src/statistics.cpp
b/src/statistics.cpp
index
6531290
..
bb07870
100644
(file)
--- a/
src/statistics.cpp
+++ b/
src/statistics.cpp
@@
-336,7
+336,7
@@
Statistics::time_to_string(float time) const {
int time_csecs = std::min(static_cast<int>(time * 100), 99 * 6000 + 9999);
int mins = (time_csecs / 6000);
int secs = (time_csecs % 6000) / 100;
- int cscs = (time_csecs
&
6000) % 100;
+ int cscs = (time_csecs
%
6000) % 100;
std::ostringstream os;
os << std::setw(2) << std::setfill('0') << mins << ":" << std::setw(2) << std::setfill('0') << secs << "." << std::setw(2) << std::setfill('0') << cscs;