Some more script functions
svn-id: r29408
This commit is contained in:
parent
684db15b34
commit
fa15952f09
4 changed files with 67 additions and 14 deletions
|
@ -32,8 +32,8 @@ scriptInstanceStruct procHead;
|
|||
|
||||
scriptInstanceStruct *currentScriptPtr;
|
||||
|
||||
uint8 getByteFromScript(void) {
|
||||
uint8 var = currentData3DataPtr[currentScriptPtr->var4];
|
||||
int8 getByteFromScript(void) {
|
||||
int8 var = *(int8*)(currentData3DataPtr+currentScriptPtr->var4);
|
||||
|
||||
currentScriptPtr->var4 = currentScriptPtr->var4 + 1;
|
||||
|
||||
|
@ -727,7 +727,7 @@ int executeScripts(scriptInstanceStruct *ptr) {
|
|||
}
|
||||
opcodeType = getByteFromScript();
|
||||
|
||||
//printf("opType: %d\n",(opcodeType&0xFB)>>3);
|
||||
printf("opType: %d\n",(opcodeType&0xFB)>>3);
|
||||
|
||||
currentScriptOpcodeType = opcodeType & 7;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue