All pastes #627597 Raw Edit

Mine

public c v1 · immutable
·published 2007-07-20 12:51 UTC
rendered paste body
Index: src/client/cl_parse.c===================================================================--- src/client/cl_parse.c       (Revision 9861)+++ src/client/cl_parse.c       (Arbeitskopie)@@ -1001,13 +1001,19 @@  */ static int CL_BiggestItem (invList_t *ic) {-       uint32_t shape;        int size, max, maxSize;+       byte shapeAsByte;         maxSize = 0;        for (max = ic->item.t; ic; ic = ic->next) {-               shape = csi.ods[ic->item.t].shape;-               size = (shape >> 24 & 0xF) * (shape >> 28 & 0xF);+               shapeAsByte = (csi.ods[ic->item.t].shape >> 24);+               size += (uint32_t)shapeAsByte;+               shapeAsByte = (csi.ods[ic->item.t].shape >> 16);+               size += (uint32_t)shapeAsByte;+               shapeAsByte = (csi.ods[ic->item.t].shape >> 8);+               size += (uint32_t)shapeAsByte;+               shapeAsByte = csi.ods[ic->item.t].shape;+               size += (uint32_t)shapeAsByte;                if (size > maxSize) {                        max = ic->item.t;                        maxSize = size;