enigma-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Enigma-cvs] enigma/src items.cc,1.87.2.4,1.87.2.5


From: Petr Machata <address@hidden>
Subject: [Enigma-cvs] enigma/src items.cc,1.87.2.4,1.87.2.5
Date: Fri, 10 Oct 2003 16:48:15 +0000

Update of /cvsroot/enigma/enigma/src
In directory subversions:/tmp/cvs-serv13064

Modified Files:
      Tag: enigma0_80_rc
        items.cc 
Log Message:

'fixed' attribute in it-crack fixed


Index: items.cc
===================================================================
RCS file: /cvsroot/enigma/enigma/src/items.cc,v
retrieving revision 1.87.2.4
retrieving revision 1.87.2.5
diff -C2 -d -r1.87.2.4 -r1.87.2.5
*** items.cc    6 Oct 2003 19:33:26 -0000       1.87.2.4
--- items.cc    10 Oct 2003 16:48:12 -0000      1.87.2.5
***************
*** 1718,1725 ****
  
          bool do_crack() {
!             double brittleness = enigma::Brittleness;
!             double_attrib ("brittleness", &brittleness);
!             double rnd = DoubleRand(0, 1);
!             return rnd < brittleness;
          }
      };
--- 1718,1729 ----
  
          bool do_crack() {
!           if (!is_fixed()) {
!               double brittleness = enigma::Brittleness;
!               double_attrib ("brittleness", &brittleness);
!               double rnd = DoubleRand(0, 1);
!               return rnd < brittleness;
!           }
!           else
!               return false;
          }
      };





reply via email to

[Prev in Thread] Current Thread [Next in Thread]