1.1 --- a/cssdm_ffa.cpp Fri Jun 25 03:53:35 2010 -0700
1.2 +++ b/cssdm_ffa.cpp Fri Jun 25 04:28:00 2010 -0700
1.3 @@ -160,6 +160,7 @@
1.4
1.5 /* Load the GameRules pointer */
1.6 int offset;
1.7 +#ifdef _MSC_VER
1.8 if (!g_pDmConf->GetOffset("g_pGameRules", &offset)
1.9 || !offset)
1.10 {
1.11 @@ -167,6 +168,9 @@
1.12 return false;
1.13 }
1.14 g_gamerules_addr = (void **)*(void **)((unsigned char *)gamerules + offset);
1.15 +#else
1.16 + g_gamerules_addr = reinterpret_cast<void **>(gamerules);
1.17 +#endif
1.18
1.19 /* Get the "IPointsForKill" offset */
1.20 if (!g_pDmConf->GetOffset("IPointsForKill", &offset)