Skip to content

Commit

Permalink
Include gangzones when doing massmove
Browse files Browse the repository at this point in the history
And print warning when massmove rotates, because gangzones won't
  • Loading branch information
yugecin committed Nov 1, 2022
1 parent 8319462 commit a01b12c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions client/massmove.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "bulkeditui.h"
#include "common.h"
#include "game.h"
#include "gangzone.h"
#include "entity.h"
#include "ide.h"
#include "racecp.h"
Expand Down Expand Up @@ -118,6 +119,17 @@ void cb_btn_do(struct UI_BUTTON *btn)
vehicles[i].pos.z += move.z;
vehicles[i].heading -= moveangle;
}

for (i = 0; i < numgangzones; i++) {
if (moveangle != 0.0f && i == 0) {
sprintf(debugstring, "gangzones do not rotate yet!!");
ui_push_debug_string();
}
gangzone_data[i].minx += move.x;
gangzone_data[i].miny += move.y;
gangzone_data[i].maxx += move.x;
gangzone_data[i].maxy += move.y;
}
}

void massmove_init()
Expand Down

0 comments on commit a01b12c

Please sign in to comment.