- Pareix que ja van els conveyor belts, pero massa apresa, crec
This commit is contained in:
@@ -528,20 +528,27 @@ namespace actor
|
|||||||
if (act->pos.z == 0) return;
|
if (act->pos.z == 0) return;
|
||||||
if (act->below)
|
if (act->below)
|
||||||
{
|
{
|
||||||
if (is_above(act, act->below)) return;
|
if (is_above(act, act->below)) {
|
||||||
|
if (act->below->flags & FLAG_REACTIVE) {
|
||||||
|
act->below->push |= PUSH_ZN;
|
||||||
|
updateReactive(act->below);
|
||||||
|
if (act->push) updatePushable(act);
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
act->below->above = nullptr;
|
act->below->above = nullptr;
|
||||||
act->below = nullptr;
|
act->below = nullptr;
|
||||||
}
|
}
|
||||||
actor_t *below = any_below_me(act);
|
actor_t *below = any_below_me(act);
|
||||||
if (below)
|
if (below)
|
||||||
{
|
{
|
||||||
if (below->flags & FLAG_REACTIVE) {
|
|
||||||
below->push |= PUSH_ZN;
|
|
||||||
updateReactive(below);
|
|
||||||
if (act->push) updatePushable(act);
|
|
||||||
}
|
|
||||||
act->below = below;
|
act->below = below;
|
||||||
below->above = act;
|
below->above = act;
|
||||||
|
if (act->below->flags & FLAG_REACTIVE) {
|
||||||
|
act->below->push |= PUSH_ZN;
|
||||||
|
updateReactive(act->below);
|
||||||
|
if (act->push) updatePushable(act);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
vec3_t min = room::getMin();
|
vec3_t min = room::getMin();
|
||||||
|
|||||||
Reference in New Issue
Block a user