int done = 0; for (int i = 0, n = numentityfields(); i < n; ++i) {
string k = entityfieldname(i); vector v = (k == "mins") ? mi_min : (k == "maxs") ? mi_max : '0 0 0';
if (v) {
- putentityfieldstring(i, world, sprintf("%d %d %d", v));
+ putentityfieldstring(i, world, sprintf("%v", v));
if (++done == 2) break;
}
}
source_team = Team_TeamToNumber(source_color + 1);
destination_team = Team_TeamToNumber(destination_color + 1);
+ if (destination_team == -1)
+ {
+ return;
+ }
+
CheckAllowedTeams(this);
if (destination_team == 1 && c1 < 0) destination_team = 4;