TSAGE: Implemented the character selection dialog logic in R2RW

This commit is contained in:
Paul Gilbert 2011-11-02 20:44:28 +11:00
parent e9aebf0a21
commit 5d08dbfa11
5 changed files with 135 additions and 1 deletions

View file

@ -376,6 +376,12 @@ void Ringworld2Globals::reset() {
_v5657C = 0;
_v565F5 = 0;
_v57C2C = 0;
Common::set_to(&_v565F1[0], &_v565F1[MAX_CHARACTERS], 0);
_player._characterIndex = 1;
_player._characterScene[1] = 100;
_player._characterScene[2] = 300;
_player._characterScene[3] = 300;
}
void Ringworld2Globals::synchronize(Serializer &s) {
@ -384,6 +390,8 @@ void Ringworld2Globals::synchronize(Serializer &s) {
s.syncAsSint16LE(_v5657C);
s.syncAsSint16LE(_v565F5);
s.syncAsSint16LE(_v57C2C);
for (int i = 0; i < MAX_CHARACTERS; ++i)
s.syncAsSint16LE(_v565F1[i]);
}
} // end of namespace Ringworld2