ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_Cheater.c
(Generate patch)

Comparing Daodan/src/Daodan_Cheater.c (file contents):
Revision 992 by alloc, Sat Apr 5 10:19:11 2014 UTC vs.
Revision 993 by alloc, Sun Apr 6 17:06:02 2014 UTC

# Line 7 | Line 7
7   #include "_Version.h"
8  
9   #include "Daodan.h"
10 + #include "Daodan_Config.h"
11   #include "Daodan_Cheater.h"
12  
13   union MSVC_EVIL_FLOAT_HACK
# Line 96 | Line 97 | uint16_t cheat_oldjet_timer = 20;
97   float cheat_oldheight1 = 45;
98   float cheat_oldheight2 = 135;
99   bool inc_fallingframes = true;
100 < extern bool patch_bsl;
100 >
101   uint8_t ONICALL DDrCheater(uint32_t cheat)
102   {
103          switch (cheat)
# Line 251 | Line 252 | uint8_t ONICALL DDrCheater(uint32_t chea
252                  }
253                  case cheat_elderrune:
254                  {
255 <                        if(patch_bsl) {
255 >                        ConfigOption_t* co = DDrConfig_GetOptOfType("patch.bsl", C_BOOL);
256 >                        if (co->value.intBoolVal)
257 >                        {
258                                  int* Regeneration = &ONgGameState->PlayerCharacter->RegenHax;
259                                  if(*Regeneration)
260                                  {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)