Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Donate bug #1

Open
wtfbbqhax opened this issue Nov 14, 2016 · 0 comments
Open

Donate bug #1

wtfbbqhax opened this issue Nov 14, 2016 · 0 comments

Comments

@wtfbbqhax
Copy link
Member

Donate bug

Reported by enneract on GrangerHub forums

image

Notice that the donated amount is a negative number.

The following patch was not generated against the GrangerHub code but provided by enneract against some other repo.

--- g_cmds.c    2016-02-13 21:16:09.000000000 +0100
+++ g_cmds.c.new        2016-11-07 22:48:10.201411292 +0100
@@ -4959,7 +4959,8 @@
        if( level.clients[ i ].pers.connected == CON_CONNECTED &&
             ent->client != level.clients + i &&
             level.clients[ i ].pers.teamSelection ==
-            ent->client->pers.teamSelection ) {
+            ent->client->pers.teamSelection &&
+            level.clients[ i ].pers.credit < max ) {
          new_credits = level.clients[ i ].pers.credit + portion;
          amounts[ i ] = portion;
          totals[ i ] += portion;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant