All pastes #710098 Raw Edit

Unnamed

public c v1 · immutable
#710098 ·published 2007-09-25 06:47 UTC
rendered paste body
Index: src/client/cl_basemanagement.c===================================================================--- src/client/cl_basemanagement.c      (Revision 11943)+++ src/client/cl_basemanagement.c      (Arbeitskopie)@@ -311,9 +311,9 @@        } else {                /* the building is not the last one, so we have to fix some indices and move some mem */                int i, row, col;+               memmove(&gd.buildings[base->idx][i], &gd.buildings[base->idx][i+1], sizeof(building_t) * (gd.numBuildings[base->idx] - building->idx));                for (i = building->idx; i < gd.numBuildings[base->idx]; i++) {                        Com_DPrintf(DEBUG_CLIENT, "Move building %i to pos %i (%i)\n", i+1, i, gd.numBuildings[base->idx]);-                       memmove(&gd.buildings[base->idx][i], &gd.buildings[base->idx][i+1], sizeof(building_t));                        for (row = 0; row < BASE_SIZE; row++)                                for (col = 0; col < BASE_SIZE; col++)                                        if (base->map[row][col] == gd.buildings[base->idx][i].idx)