File tree Expand file tree Collapse file tree
GameFrameX.Hotfix/Logic/Server Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ async Task Work()
448448 b = 0 ;
449449 foreach ( var actor in ActorMap . Values )
450450 {
451- if ( actor . Type > GlobalConst . ActorTypeSeparator )
451+ if ( actor . Type > GlobalConst . ActorTypeSeparator && actor . Type != driverActorType )
452452 {
453453 b ++ ;
454454
Original file line number Diff line number Diff line change @@ -327,8 +327,10 @@ private class CrossDayTimeHandler : TimerHandler<ServerComponentAgent>
327327 protected override async Task HandleTimer ( ServerComponentAgent agent , GameEventArgs gameEventArgs )
328328 {
329329 LogHelper . Debug ( $ "ServerCompAgent.CrossDayTimeHandler.跨天定时器执行{ TimerHelper . CurrentDateTimeWithUtcFormat ( ) } ") ;
330- await ActorManager . RoleCrossDay ( 1 ) ;
331- await ActorManager . CrossDay ( 1 , GlobalConst . ActorTypeServer ) ;
330+ var crossDays = TimerHelper . GetCrossDaysWithUtc ( agent . State . FirstStartTime ) ;
331+
332+ await ActorManager . RoleCrossDay ( crossDays ) ;
333+ await ActorManager . CrossDay ( crossDays , GlobalConst . ActorTypeServer ) ;
332334 }
333335 }
334336
You can’t perform that action at this time.
0 commit comments