mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Changed code for sex in brothel to use the externalized grid numbers.
This change only helps if you use the fixed LUA script in GameDir 1792. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6445 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
+16
-16
@@ -7089,23 +7089,23 @@ static int l_ACTION_ITEM_SEX (lua_State *L)
|
|||||||
// stop the merc...
|
// stop the merc...
|
||||||
MercPtrs[ ubID ]->EVENT_StopMerc( MercPtrs[ ubID ]->sGridNo, MercPtrs[ ubID ]->ubDirection );
|
MercPtrs[ ubID ]->EVENT_StopMerc( MercPtrs[ ubID ]->sGridNo, MercPtrs[ ubID ]->ubDirection );
|
||||||
|
|
||||||
switch( sGridNo )
|
if ( sGridNo == gModSettings.iCarlaDoorGridNo +1 )
|
||||||
|
{
|
||||||
|
sDoorSpot = gModSettings.iCarlaDoorGridNo;
|
||||||
|
sTeleportSpot = gModSettings.iCarlaDoorGridNo;
|
||||||
|
}
|
||||||
|
else if ( sGridNo == gModSettings.iCindyDoorGridNo +1 )
|
||||||
|
{
|
||||||
|
sDoorSpot = gModSettings.iCindyDoorGridNo;
|
||||||
|
sTeleportSpot = gModSettings.iCindyDoorGridNo;
|
||||||
|
}
|
||||||
|
else if ( sGridNo == gModSettings.iBambiDoorGridNo )
|
||||||
|
{
|
||||||
|
sDoorSpot = gModSettings.iBambiDoorGridNo;
|
||||||
|
sTeleportSpot = gModSettings.iBambiDoorGridNo +1;
|
||||||
|
}
|
||||||
|
else
|
||||||
{
|
{
|
||||||
case 13414:
|
|
||||||
sDoorSpot = 13413;
|
|
||||||
sTeleportSpot = 13413;
|
|
||||||
break;
|
|
||||||
case 11174:
|
|
||||||
sDoorSpot = 11173;
|
|
||||||
sTeleportSpot = 11173;
|
|
||||||
break;
|
|
||||||
case 12290:
|
|
||||||
sDoorSpot = 12290;
|
|
||||||
sTeleportSpot = 12291;
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
|
|
||||||
sDoorSpot = NOWHERE;
|
sDoorSpot = NOWHERE;
|
||||||
sTeleportSpot = NOWHERE;
|
sTeleportSpot = NOWHERE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user