diff options
author | Frederick Yin <fkfd@fkfd.me> | 2022-06-01 11:33:07 +0800 |
---|---|---|
committer | Frederick Yin <fkfd@fkfd.me> | 2022-06-01 11:33:07 +0800 |
commit | 0c6ecb8ebd68910c556facf0eed5730687412c0a (patch) | |
tree | 4dee46ff8863e2d1df9b2c5648faced2d8a4d927 /sirtet.c | |
parent | d94bf01fdd4b8e9f307463ea04454c8db4824859 (diff) |
Misc retouches
Diffstat (limited to 'sirtet.c')
-rw-r--r-- | sirtet.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -129,6 +129,7 @@ void sirtet() { // select piece bool piece_confirmed = false; int pc_idx; + struct piece* pc; for (int i = 0; i < P; i++) { if (hand[i] != NULL) { pc_idx = i; @@ -144,6 +145,7 @@ void sirtet() { switch (ch) { case 10: // enter piece_confirmed = true; + pc = hand[pc_idx]; break; case KEY_LEFT: for (int i = 0; i < P; i++) { @@ -164,7 +166,6 @@ void sirtet() { } } - struct piece* pc = hand[pc_idx]; // select position bool pos_confirmed = false; |