|
不得不寒一下,刚才找朋友测试了下《龙之舞者》试玩版本1.0,出现一个导致系统崩溃的问题……
这个问题的出现应该是和一个BUG函数有关系,最后终于查出了这个BUG函数:
[jass]function YiGeGe takes string S, string name returns nothing
local integer a = StringLength(S)
local integer index = 1
local integer Random
local string veiw = ""
local location point = GetRectCenter(GetPlayableMapRect())
loop
exitwhen index > a
if ModuloInteger(index, 2) == 1 then
set Random = GetRandomInt(1, 4)
if Random == 1 then
call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep1.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
endif
if Random == 2 then
call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep2.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
endif
if Random == 3 then
call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep3.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
endif
if Random == 4 then
call PlaySoundBJ( CreateSound( "Sound\\Units\\Footsteps\\HeroStep4.wav", false, false, true, 10, 10, "DefaultEAXON" ) )
endif
endif
set veiw = veiw + SubStringBJ(S,index,index+1)
call TransmissionFromUnitTypeWithNameBJ( GetPlayersAll(), Player(0), 'ewsp', name, point, null, veiw, bj_TIMETYPE_ADD, 0, false )
call TriggerSleepAction( 0 )
set index = index + 2
endloop
call RemoveLocation(point)
//return
endfunction
[/jass]
然后杀杀杀……最后声明一下,系统崩溃只会在联机游戏中才会出现,单机游戏不会出现这个问题,且这个问题只发生在非主机身上。
另外说一句,要怪就怪BLIZZARD吧 -_-; |
|