chiark / gitweb /
Prevent use of organise function when rotated
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 7 Apr 2021 18:17:49 +0000 (19:17 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 7 Apr 2021 18:38:48 +0000 (19:38 +0100)
commit75542c4e011c86fecd7411ff960f6d81c2a546a7
treebd9d9e53f23c8e981c033863f604667710091e61
parent47ed629d26f9aa64ca2c8c780762bf04be2ef7a1
Prevent use of organise function when rotated

Add the proof token to the organise function, and check it in hand.

This only currently makes any difference for player labels, because
the other kinds of hand are unrotateable from load time.

Because we don't update uos on rotation, the player can try to
organise a rotated player label, but they will get an error.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/hand.rs
src/organise.rs