diff NPC.h @ 248:37dcbe8f3cca

Dialogue stuff
author Nomad
date Mon, 18 Feb 2013 07:11:43 +0200
parents 2799737f8a74
children e22e2357c8b3
line wrap: on
line diff
--- a/NPC.h	Mon Feb 18 03:59:31 2013 +0200
+++ b/NPC.h	Mon Feb 18 07:11:43 2013 +0200
@@ -17,9 +17,11 @@
 #pragma pack(push, 1)
 struct NPCData
 {
+  inline bool Hired() {return uFlags & 0x80;}
+
   char *pName;
   unsigned int uPortraitID;
-  unsigned int uFlags;         // & 0x80    no greeting on dialogue start
+  unsigned int uFlags;         // & 0x80    no greeting on dialogue start; looks like hired
   int fame;
   int rep;
   int house;