aboutsummaryrefslogtreecommitdiff
path: root/src/shared/Util.h
diff options
context:
space:
mode:
authormegamage <none@none>2009-07-16 10:13:12 +0800
committermegamage <none@none>2009-07-16 10:13:12 +0800
commite1762e3e6d6a9cc82f2244b5c6d4e26d3315caf6 (patch)
tree9de6c38c8832b8627a782fe75ba418dd240b3b01 /src/shared/Util.h
parent6f256824233ae004cf3fc93d1626e91c279452ea (diff)
[8169] Implement new optional table `spell_check` and console command .debug spellcheck Author: VladimirMangos
* Table expected to be store data mirror same data in code: - explicit spell ids with related expected spell properties like effects, spell family or auras - implicit requirements for select some spell sets like spell family masks, icons or visual values * For check can be used .debug spellcheck _console_ only command. * Main purpose table and related command check code parts for outdated data at client switch. It also can be used for check data in patch writing time to be sure code correctness. --HG-- branch : trunk
Diffstat (limited to 'src/shared/Util.h')
-rw-r--r--src/shared/Util.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/shared/Util.h b/src/shared/Util.h
index ddbf968b2c2..496411d8be3 100644
--- a/src/shared/Util.h
+++ b/src/shared/Util.h
@@ -321,6 +321,11 @@ uint32 CreatePIDFile(const std::string& filename);
#ifndef _FLAG96
#define _FLAG96
+#ifndef PAIR64_HIPART
+#define PAIR64_HIPART(x) (uint32)((uint64(x) >> 32) & UI64LIT(0x00000000FFFFFFFF))
+#define PAIR64_LOPART(x) (uint32)(uint64(x) & UI64LIT(0x00000000FFFFFFFF))
+#endif
+
class flag96
{
private:
@@ -333,6 +338,13 @@ public:
part[2]=p3;
}
+ flag96(uint64 p1, uint32 p2)
+ {
+ part[0]=PAIR64_LOPART(p1);
+ part[1]=PAIR64_HIPART(p1);
+ part[2]=p2;
+ }
+
inline bool IsEqual(uint32 p1=0, uint32 p2=0, uint32 p3=0) const
{
return (