[crossfire] [Humour] Have fun moments with crossfire code

tchize tchize at myrealbox.com
Sat Jun 3 14:37:46 CDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

While writing some test i came accross this line of code in
sum_weight() (object.c)

if(op->carrying != sum)
    op->carrying = sum;

I suppose whoever wrote this had in mind that some memory chips are
faster at ready data than writing them. I guess it make sense for very
slow memory.

PS: it might be interresting to write some wiki page with all strange
code we find :D
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFEgeUKHHGOa1Q2wXwRAsLbAJ9mVYcvJYTXVVKkL5p/2DTInx0R/QCffwru
c9fKZt8B4hJeL42iG9TsBZk=
=EnHA
-----END PGP SIGNATURE-----




More information about the crossfire mailing list