After looking through the code, I created the following possible patch. I haven't rebuilt the package to try it (it's a bit too much of a learning curve for the time I have at the moment), but it is quite possibly what the problem is.

I used the 2.5-1 source package for this.

--- atanks.cc.orig      2007-08-12 14:34:01.000000000 -0500
+++ atanks.cc   2007-11-27 23:31:14.000000000 -0600
@@ -1626,7 +1626,7 @@
                         if (global->players[z]->money > 1000000000)
                             global->players[z]->money = 1000000000;
                         if (global->players[z]->money < 0)
-                            global->players[z]->money = 1000000000;
+                            global->players[z]->money = 0;
                }
        }

As you can see, if, for some reason, the money a player has is below zero at this point, they magically get one billion dollars. It's the only place in the code that something like this happens.

Thanks,
Michael

--
It's Michael. No, really. It is. I'm not kidding.
[-- Move along. Nothing to see here --]


Reply via email to