mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 13:55:54 +03:00
bash batteries for gate prep/lose
This commit is contained in:
parent
8417f4b7c5
commit
f2f6a04cc5
@ -1525,9 +1525,10 @@ u3j_gate_prep(u3j_site* sit_u, u3_noun cor)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
sit_u->axe = 2;
|
sit_u->axe = 2;
|
||||||
|
sit_u->bas = _cj_bash(u3h(cor));
|
||||||
sit_u->bat = cor; // a lie, this isn't really the battery!
|
sit_u->bat = cor; // a lie, this isn't really the battery!
|
||||||
sit_u->pog_p = _cj_prog(u3h(cor));
|
sit_u->pog_p = _cj_prog(u3h(cor));
|
||||||
if ( u3_none != (loc = sit_u->loc = _cj_spot(cor, u3_none)) ) {
|
if ( u3_none != (loc = sit_u->loc = _cj_spot(cor, sit_u->bas)) ) {
|
||||||
u3_noun pax = u3h(u3t(loc)),
|
u3_noun pax = u3h(u3t(loc)),
|
||||||
pay = u3qc_cap(pax),
|
pay = u3qc_cap(pax),
|
||||||
pam = u3qc_mas(pax);
|
pam = u3qc_mas(pax);
|
||||||
@ -1574,6 +1575,7 @@ void
|
|||||||
u3j_gate_lose(u3j_site* sit_u)
|
u3j_gate_lose(u3j_site* sit_u)
|
||||||
{
|
{
|
||||||
u3z(sit_u->bat);
|
u3z(sit_u->bat);
|
||||||
|
u3z(sit_u->bas);
|
||||||
if ( u3_none != sit_u->loc ) {
|
if ( u3_none != sit_u->loc ) {
|
||||||
u3z(sit_u->loc);
|
u3z(sit_u->loc);
|
||||||
u3z(sit_u->lab);
|
u3z(sit_u->lab);
|
||||||
|
Loading…
Reference in New Issue
Block a user