瀏覽代碼

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 年之前
父節點
當前提交
9d4fa62e65
共有 1 個文件被更改,包括 5 次插入0 次删除
  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
 };