
05-27-2006, 02:31 PM
|
|
The Shiznic
|
Join Date: Dec 2001
Location: Sweden > Stockholm
Posts: 2,411
|
|
|
Hmm..
Lets say temp.dmcheck = 10
and temp.dmg = 10.
temp.dmcheck = temp.dmg-1; //This part will make temp.dmcheck into temp.dmg(10)-1. dmcheck is now 9 and dmg is still 10.
temp.dmg--; makes it 9.
So what you do is to remove 1 from temp.dmg and temp.dmcheck.
So what you did is the same as doing:
temp.dmg--;
temp.dmcheck = temp.dmg;
right?
Correct me if I'm wrong. |
__________________
-Mher Avetian
|
|
|
|