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 453 by rossy, Mon Aug 10 10:33:47 2009 UTC vs.
Revision 454 by rossy, Mon Aug 10 10:45:57 2009 UTC

# Line 125 | Line 125 | uint8_t ONICALL DDrCheater(uint32_t chea
125                  }
126                  case cheat_shinobi:
127                  {
128 <                        Character* player = (Character*)*((char**)(ONgGameState + GSA_player));
128 >                        Character* player = (Character*)*((void**)(ONgGameState + GSA_player));
129                          if (player->MaxHealth == 1)
130                          {
131                                  player->Health = cheat_oldhealth;
132                                  player->MaxHealth = cheat_oldmaxhealth;
133 +                                player->Flags = player->Flags & ~(chr_bossshield | chr_weaponimmune);
134                                  return 0;
135                          }
136                          else
# Line 138 | Line 139 | uint8_t ONICALL DDrCheater(uint32_t chea
139                                  cheat_oldmaxhealth = player->MaxHealth;
140                                  player->Health = 1;
141                                  player->MaxHealth = 1;
142 +                                player->Flags = player->Flags | chr_bossshield | chr_weaponimmune;
143                                  return 1;
144                          }
145                          

Diff Legend

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