[7854] Fixed typo in random text selection code. Author: NoFantasy
--HG-- branch : trunk
This commit is contained in:
@@ -331,8 +331,8 @@ void CreatureEventAI::ProcessAction(CreatureEventAI_Action const& action, uint32
|
|||||||
switch( rand()%3 )
|
switch( rand()%3 )
|
||||||
{
|
{
|
||||||
case 0: temp = action.text.TextId1; break;
|
case 0: temp = action.text.TextId1; break;
|
||||||
case 2: temp = action.text.TextId2; break;
|
case 1: temp = action.text.TextId2; break;
|
||||||
case 3: temp = action.text.TextId3; break;
|
case 2: temp = action.text.TextId3; break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (action.text.TextId2 && urand(0,1))
|
else if (action.text.TextId2 && urand(0,1))
|
||||||
|
|||||||
Reference in New Issue
Block a user