git repos / blockattack-game

commit ddfaa92f

sago007 · 2008-09-06 22:44
ddfaa92f8422d7089509248c71201e91cc12bc70 patch · browse files
parent e8649e47bf556a2438653c2767241d73f0e9db5c

Fixed: Adding the runtime to the wrong variable

git-svn-id: https://blockattack.svn.sourceforge.net/svnroot/blockattack/trunk@36 9d7177f8-192b-0410-8f35-a16a89829b06

Changed files

M source/code/common.cc before
diff --git a/source/code/common.cc b/source/code/common.cc index c18f1d8..04fd4bb 100644 --- a/source/code/common.cc +++ b/source/code/common.cc
@@ -99,7 +99,7 @@ commonTime addTotalTime(commonTime toAdd)
ct.hours += toAdd.hours;
ct.days += ct.hours/24;
- ct.minutes += ct.hours%24;
+ ct.hours = ct.hours%24;
ct.days += toAdd.days;