fix payment bug
This commit is contained in:
parent
bf3ee866c9
commit
3e46ceca92
2
main.fs
2
main.fs
|
@ -127,7 +127,7 @@ S" you feel like throwing some stuff into the pool." set-message
|
|||
: can-afford? ( n currency -- flag ) f@ s>f f>= ;
|
||||
|
||||
\ the word pay pays an amount of a currency.
|
||||
: pay ( n currency -- ) dup f@ swap s>f fswap f- f! ;
|
||||
: pay ( n currency -- ) dup f@ swap s>f ( fswap ) f- f! ;
|
||||
|
||||
\ the word clear-message clears the onscreen message
|
||||
: clear-message S" " set-message ;
|
||||
|
|
Reference in New Issue