mirror of
https://git.code.sf.net/p/quake/prozac-qfcc
synced 2024-11-10 07:11:51 +00:00
- don't recheck the placement location if trace_fraction == 1
This commit is contained in:
parent
81f9c7f253
commit
63999de0a0
1 changed files with 7 additions and 3 deletions
10
engineer.qc
10
engineer.qc
|
@ -690,13 +690,17 @@ void(float objtobuild) TeamFortress_Build =
|
||||||
endpos_z = self.absmin_z - obj.mins_z - 20;
|
endpos_z = self.absmin_z - obj.mins_z - 20;
|
||||||
checkmove(startpos, obj.mins, obj.maxs, endpos, MOVE_NORMAL, self);
|
checkmove(startpos, obj.mins, obj.maxs, endpos, MOVE_NORMAL, self);
|
||||||
|
|
||||||
if (trace_startsolid || trace_fraction == 1) {
|
if (trace_fraction == 1) {
|
||||||
|
sprint (self, PRINT_HIGH, "Not enough room to build here\n");
|
||||||
|
dremove (obj);
|
||||||
|
return;
|
||||||
|
} else if (trace_startsolid) {
|
||||||
checkmove (trace_endpos, obj.mins, obj.maxs, trace_endpos,
|
checkmove (trace_endpos, obj.mins, obj.maxs, trace_endpos,
|
||||||
MOVE_NORMAL, self);
|
MOVE_NORMAL, self);
|
||||||
printtrace (TRUE);
|
printtrace (TRUE);
|
||||||
if (trace_startsolid) {
|
if (trace_startsolid) {
|
||||||
sprint(self, PRINT_HIGH, "Not enough room to build here\n");
|
sprint (self, PRINT_HIGH, "Not enough room to build here\n");
|
||||||
dremove(obj);
|
dremove (obj);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue