forked from mirror/openmw-tes3mp
Another remove function
This commit is contained in:
parent
a885f3e942
commit
1f566fc93a
2 changed files with 10 additions and 0 deletions
|
@ -410,4 +410,13 @@ void NpcAnimation::removeIndividualPart(int type){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NpcAnimation::removePartGroup(int group){
|
||||||
|
for(int i = 0; i < 27; i++){
|
||||||
|
if(partslots[i] == group){
|
||||||
|
removeIndividualPart(i);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -77,6 +77,7 @@ private:
|
||||||
virtual void runAnimation(float timepassed);
|
virtual void runAnimation(float timepassed);
|
||||||
void updateParts();
|
void updateParts();
|
||||||
void removeIndividualPart(int type);
|
void removeIndividualPart(int type);
|
||||||
|
void removePartGroup(int group);
|
||||||
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue