/[enigma]/enigma/src/stones_simple.cc
ViewVC logotype

Diff of /enigma/src/stones_simple.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by dheck, Wed Aug 27 18:34:08 2003 UTC revision 1.51 by reallysoft, Sun Sep 7 09:53:20 2003 UTC
# Line 188  namespace Line 188  namespace
188      private:      private:
189    
190          StoneResponse collision_response(const StoneContact &/*sc*/) {          StoneResponse collision_response(const StoneContact &/*sc*/) {
191              int code = int_attrib("code");              static int lastCode = -1;
192              fprintf(stderr, "Collision with stone 0x%02x\n", code);              int        code     = int_attrib("code");
193                if (code != lastCode) {
194                    fprintf(stderr, "Collision with stone 0x%02x\n", code);
195                    lastCode = code;
196                }
197              return STONE_REBOUND;              return STONE_REBOUND;
198          }          }
199      };      };

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26