高级玩家

- 贡献度
- 0
- 金元
- 2823
- 积分
- 282
- 精华
- 0
- 注册时间
- 2006-12-18
|
更新5.01后把mod文件内的
@wrapMethod(CR4MapMenu)
function OnUserMapPinSet( posX : float, posY : float, type : int, fromSelectionPanel : bool )
{
var before : int;
before = 0;
if ( theGame.GetCommonMapManager() )
before = theGame.GetCommonMapManager().GetUserMapPinCount();
wrappedMethod( posX, posY, type, fromSelectionPanel );
if ( WQOL_IsConfigOn( 'WQOLPinTeleport' ) && thePlayer && theGame.GetCommonMapManager() )
{
if ( theGame.GetCommonMapManager().GetUserMapPinCount() > before )
thePlayer.DebugTeleportToPin( posX, posY );
}
return true;
}
替换成
@wrapMethod(CR4MapMenu)
function OnUserMapPinSet(
posX : float,
posY : float,
type : int,
fromSelectionPanel : bool,
insideBounds : bool
)
{
var before : int;
before = 0;
if ( theGame.GetCommonMapManager() )
{
before = theGame.GetCommonMapManager().GetUserMapPinCount();
}
wrappedMethod(
posX,
posY,
type,
fromSelectionPanel,
insideBounds
);
if ( WQOL_IsConfigOn( 'WQOLPinTeleport' ) && thePlayer && theGame.GetCommonMapManager() )
{
if ( theGame.GetCommonMapManager().GetUserMapPinCount() > before )
{
thePlayer.DebugTeleportToPin( posX, posY );
}
}
return true;
}
旅途愉快 |
|