Ver código fonte

Fixed PCBLOCK_EQUIP (#8399)

Fixes #8398

Thanks to @nubspixel
Lemongrass3110 1 ano atrás
pai
commit
c74ad5c8c2
2 arquivos alterados com 4 adições e 2 exclusões
  1. 2 1
      src/map/pc.hpp
  2. 2 1
      src/map/script_constants.hpp

+ 2 - 1
src/map/pc.hpp

@@ -446,7 +446,8 @@ public:
 		bool barter_open;
 		bool barter_extended_open;
 		bool enchantgrade_open; // Whether the enchantgrade window is open or not
-		unsigned int block_action : 10;
+		// Bitmask of e_pcblock_action_flag values
+		uint16 block_action;
 		bool refineui_open;
 		t_itemid inventory_expansion_confirmation;
 		uint16 inventory_expansion_amount;

+ 2 - 1
src/map/script_constants.hpp

@@ -10625,8 +10625,9 @@
 	export_constant(PCBLOCK_SITSTAND);
 	export_constant(PCBLOCK_COMMANDS);
 	export_constant(PCBLOCK_NPCCLICK);
-	export_constant(PCBLOCK_NPC);
 	export_constant(PCBLOCK_EMOTION);
+	export_constant(PCBLOCK_EQUIP);
+	export_constant(PCBLOCK_NPC);
 	export_constant(PCBLOCK_ALL);
 
 	/* convertpcinfo command */