[Scummvm-cvs-logs] CVS: scummvm/scumm/insane insane_enemy.cpp,1.9,1.10
Eugene Sandulenko
sev at users.sourceforge.net
Mon Feb 9 20:19:08 CET 2004
Update of /cvsroot/scummvm/scummvm/scumm/insane
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11143/scumm/insane
Modified Files:
insane_enemy.cpp
Log Message:
Fix warnings which spotted bugs at the same time
Index: insane_enemy.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/insane/insane_enemy.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- insane_enemy.cpp 10 Feb 2004 04:02:34 -0000 1.9
+++ insane_enemy.cpp 10 Feb 2004 04:15:36 -0000 1.10
@@ -171,7 +171,7 @@
retval = 1;
}
_enHdlVar[EN_ROTT1][5] = 0;
- _enHdlVar[EN_ROTT1][6] = ABS(_vm->_rnd.getRandomNumber(probability - 1)) * 2;
+ _enHdlVar[EN_ROTT1][6] = _vm->_rnd.getRandomNumber(probability - 1) / 2;
}
if (_actor[actor1].weapon == -1)
@@ -335,7 +335,7 @@
retval = 1;
}
_enHdlVar[EN_ROTT1][5] = 0;
- _enHdlVar[EN_ROTT1][6] = ABS(_vm->_rnd.getRandomNumber(probability - 1)) * 2;
+ _enHdlVar[EN_ROTT1][6] = _vm->_rnd.getRandomNumber(probability - 1) / 2;
}
if (_actor[actor1].weapon == -1)
@@ -479,7 +479,7 @@
retval = 1;
}
_enHdlVar[EN_ROTT3][5] = 0;
- _enHdlVar[EN_ROTT3][6] = ABS(_vm->_rnd.getRandomNumber(probability - 1)) * 2;
+ _enHdlVar[EN_ROTT3][6] = _vm->_rnd.getRandomNumber(probability - 1) / 2;
}
if (_actor[actor1].weapon == -1)
@@ -629,7 +629,7 @@
retval = 1;
}
_enHdlVar[EN_VULTF1][5] = 0;
- _enHdlVar[EN_VULTF1][6] = ABS(_vm->_rnd.getRandomNumber(probability - 1)) / 2;
+ _enHdlVar[EN_VULTF1][6] = _vm->_rnd.getRandomNumber(probability - 1) / 2;
}
if (_actor[actor1].weapon == -1)
@@ -785,7 +785,7 @@
retval = 1;
}
_enHdlVar[EN_VULTM1][5] = 0;
- _enHdlVar[EN_VULTM1][6] = ABS(_vm->_rnd.getRandomNumber(probability - 1)) * 2;
+ _enHdlVar[EN_VULTM1][6] = _vm->_rnd.getRandomNumber(probability - 1) / 2;
}
if (_actor[actor1].weapon == -1)
More information about the Scummvm-git-logs
mailing list