shithub: cstory

Download patch

ref: 7f75ad6ef8ca9c1a2b87f860e4287b32c14845f3
parent: df119e69d767fa575696f1c6172ca9bf60fc2cdb
author: Gabriel Ravier <gabravier@gmail.com>
date: Mon May 13 10:20:39 EDT 2019

Added comment for macros

--- a/src/Flags.cpp
+++ b/src/Flags.cpp
@@ -7,6 +7,7 @@
 unsigned char gFlagNPC[1000];
 unsigned char gSkipFlag[8];
 
+// Macros for setting, un-setting and getting bits
 #define SET_BIT(x, i) ((x)[(i) / 8] |= 1 << (i) % 8)
 #define UNSET_BIT(x, i) ((x)[(i) / 8] &= ~(1 << (i) % 8))
 #define GET_BIT(x, i) ((x)[(i) / 8] & (1 << (i) % 8))