I see. That's awkward... So we just need call a function to verify and possibly sync gamedata::cheat with the cheat flags on calls to Game->Cheat and the cheat dialog then. Unless there's a better way.
123 replies to this topic
#121
Posted 01 July 2014 - 08:11 PM
#122
Posted 01 July 2014 - 08:40 PM
If gamedata::_cheat is the same type as the cheat flags, then you could just make it a reference to the flags. Else you will have to refactor it so they always keep in sync.
EDIT: I don't know the code I just always forget reference variables exist
EDIT2: You could also do operator overloading magic to make a class that keeps everything in sync look and act like game::_cheat does. This would be cryptic.
EDIT: I don't know the code I just always forget reference variables exist
EDIT2: You could also do operator overloading magic to make a class that keeps everything in sync look and act like game::_cheat does. This would be cryptic.
Edited by anikom15, 01 July 2014 - 08:59 PM.
#123
Posted 25 October 2015 - 04:13 PM
Thank you for ZeldaShark! Very helpful!!
#124
Posted 24 December 2015 - 01:37 AM
Now 100% broken in 2.50.2.
EDIT: It's fixed now.
Edited by Dimentio, 13 November 2018 - 12:11 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users