mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-20 16:59:06 +00:00
DREAMWEB: 'geteitherad' ported to C++
This commit is contained in:
parent
5efba92b8e
commit
266af3b089
@ -1101,6 +1101,13 @@ DynObject *DreamGenContext::getexad(uint8 index) {
|
||||
return (DynObject *)segRef(data.word(kExtras)).ptr(kExdata, 0) + index;
|
||||
}
|
||||
|
||||
DynObject *DreamGenContext::geteitheradCPP() {
|
||||
if (data.byte(kObjecttype) == 4)
|
||||
return getexad(data.byte(kItemframe));
|
||||
else
|
||||
return getfreead(data.byte(kItemframe));
|
||||
}
|
||||
|
||||
SetObject *DreamGenContext::getsetad(uint8 index) {
|
||||
return (SetObject *)segRef(data.word(kSetdat)).ptr(0, 0) + index;
|
||||
}
|
||||
|
@ -157,6 +157,7 @@
|
||||
void findormake(uint8 index, uint8 value, uint8 type);
|
||||
DynObject *getfreead(uint8 index);
|
||||
DynObject *getexad(uint8 index);
|
||||
DynObject *geteitheradCPP();
|
||||
SetObject *getsetad(uint8 index);
|
||||
void setallchanges();
|
||||
void dochange();
|
||||
|
Loading…
Reference in New Issue
Block a user