File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ class TimeIsTimeBeforeConfigLoad : public WorldScript {
24
24
TimeIsTimeBeforeConfigLoad () : WorldScript(" TimeIsTimeBeforeConfigLoad" ) { }
25
25
26
26
void OnBeforeConfigLoad (bool /* reload*/ ) override {
27
- stimeistime_enable = sConfigMgr ->GetBoolDefault (" TimeIsTime.Enable" , true );
28
- stimeistime_announce = sConfigMgr ->GetBoolDefault (" TimeIsTime.Announce" , true );
29
- stimeistime_speed_rate = sConfigMgr ->GetFloatDefault (" TimeIsTime.SpeedRate" , 1.0 );
30
- stimeistime_hour_offset = sConfigMgr ->GetFloatDefault (" TimeIsTime.HourOffset" , 0.0 );
31
- stimeistime_time_start = sConfigMgr ->GetIntDefault (" TimeIsTime.TimeStart" , 0 );
27
+ stimeistime_enable = sConfigMgr ->GetOption < bool > (" TimeIsTime.Enable" , true );
28
+ stimeistime_announce = sConfigMgr ->GetOption < bool > (" TimeIsTime.Announce" , true );
29
+ stimeistime_speed_rate = sConfigMgr ->GetOption < float > (" TimeIsTime.SpeedRate" , 1.0 );
30
+ stimeistime_hour_offset = sConfigMgr ->GetOption < float > (" TimeIsTime.HourOffset" , 0.0 );
31
+ stimeistime_time_start = sConfigMgr ->GetOption < int > (" TimeIsTime.TimeStart" , 0 );
32
32
}
33
33
};
34
34
You can’t perform that action at this time.
0 commit comments