Skip to content

Donate bug #1

Open
Open
@wtfbbqhax

Description

@wtfbbqhax

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions