Browse Source

Fixed a bug with pin code on 2018-01-24

The button to access pin code menu after entering the correct code was likely removed in this client.
It was rendered in between all the characters if we send out the PASSED state instead of the OK state.

Thanks to Bruno
Lemongrass3110 7 years ago
parent
commit
9d4fa62e65
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/char/char.hpp

+ 5 - 0
src/char/char.hpp

@@ -101,7 +101,12 @@ enum pincode_state : uint8 {
 #if 0
 #if 0
 	PINCODE_KSSN	= 6, // Not supported since we do not store KSSN
 	PINCODE_KSSN	= 6, // Not supported since we do not store KSSN
 #endif
 #endif
+#if PACKETVER >= 20180124
+	// The button for pin code access was removed
+	PINCODE_PASSED  = PINCODE_OK,
+#else
 	PINCODE_PASSED	= 7,
 	PINCODE_PASSED	= 7,
+#endif
 	PINCODE_WRONG	= 8,
 	PINCODE_WRONG	= 8,
 	PINCODE_MAXSTATE
 	PINCODE_MAXSTATE
 };
 };