coghq: fix another ceo crash
This commit is contained in:
parent
c393377ae4
commit
d1f72e47ef
2 changed files with 3 additions and 1 deletions
|
@ -297,6 +297,8 @@ class DistributedBanquetTable(DistributedObject.DistributedObject, FSM.FSM, Banq
|
||||||
serviceLoc = self.serviceLocs[chairIndex]
|
serviceLoc = self.serviceLocs[chairIndex]
|
||||||
|
|
||||||
def foodAttach(self = self, diner = diner):
|
def foodAttach(self = self, diner = diner):
|
||||||
|
if not self.serviceLocs[chairIndex].getNumChildren():
|
||||||
|
return
|
||||||
foodModel = self.serviceLocs[chairIndex].getChild(0)
|
foodModel = self.serviceLocs[chairIndex].getChild(0)
|
||||||
(foodModel.reparentTo(diner.getRightHand()),)
|
(foodModel.reparentTo(diner.getRightHand()),)
|
||||||
(foodModel.setHpr(Point3(0, -94, 0)),)
|
(foodModel.setHpr(Point3(0, -94, 0)),)
|
||||||
|
|
|
@ -195,7 +195,7 @@ class DistributedBossbotBoss(DistributedBossCog.DistributedBossCog, FSM.FSM):
|
||||||
npc.setPickable(0)
|
npc.setPickable(0)
|
||||||
npc.setPlayerType(NametagGroup.CCNonPlayer)
|
npc.setPlayerType(NametagGroup.CCNonPlayer)
|
||||||
dna = ToonDNA.ToonDNA()
|
dna = ToonDNA.ToonDNA()
|
||||||
dna.newToonRandom(11237, 'm', 1)
|
dna.newToonRandom(146392, 'm', 1)
|
||||||
dna.head = 'sls'
|
dna.head = 'sls'
|
||||||
npc.setDNAString(dna.makeNetString())
|
npc.setDNAString(dna.makeNetString())
|
||||||
npc.animFSM.request('neutral')
|
npc.animFSM.request('neutral')
|
||||||
|
|
Loading…
Reference in a new issue