Skip to content

Commit

Permalink
Rename prevanimno to prevanim
Browse files Browse the repository at this point in the history
Makes it consistent with Anim. StateNo -> PrevStateNo, Anim -> PrevAnim
  • Loading branch information
Lazin3ss committed Dec 2, 2022
1 parent b24a399 commit 9f71572
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bytecode.go
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ const (
OC_ex_pos_z
OC_ex_vel_z
OC_ex_jugglepoints
OC_ex_prevanimno
OC_ex_prevanim
OC_ex_reversaldefattr
)
const (
Expand Down Expand Up @@ -1989,7 +1989,7 @@ func (be BytecodeExp) run_ex(c *Char, i *int, oc *Char) {
sys.bcStack.PushF(c.vel[2] * (c.localscl / oc.localscl))
case OC_ex_jugglepoints:
sys.bcStack.PushI(c.juggle)
case OC_ex_prevanimno:
case OC_ex_prevanim:
sys.bcStack.PushI(c.prevAnimNo)
case OC_ex_reversaldefattr:
sys.bcStack.PushB(c.reversalDefAttr(*(*int32)(unsafe.Pointer(&be[*i]))))
Expand Down
4 changes: 2 additions & 2 deletions src/compiler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1965,8 +1965,8 @@ func (c *Compiler) expValue(out *BytecodeExp, in *string,
return bvNone(), err
}
out.append(OC_playeridexist)
case "prevanimno":
out.append(OC_ex_, OC_ex_prevanimno)
case "prevanim":
out.append(OC_ex_, OC_ex_prevanim)
case "prevstateno":
out.append(OC_prevstateno)
case "projcanceltime":
Expand Down

0 comments on commit 9f71572

Please sign in to comment.