Procházet zdrojové kódy

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 před 7 roky
rodič
revize
9d4fa62e65
1 změnil soubory, kde provedl 5 přidání a 0 odebrání
  1. 5 0
      src/char/char.hpp

+ 5 - 0
src/char/char.hpp

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