mirror of
https://github.com/islehorse/HISP.git
synced 2025-07-17 20:41:32 +12:00
Make nearby more accurate to public server.
This commit is contained in:
parent
9f592fb51b
commit
9f3ebaa256
8 changed files with 34 additions and 14 deletions
|
@ -198,7 +198,7 @@ namespace HISP.Game
|
|||
Database.SetServerTime(ServerTime.Minutes, ServerTime.Days, ServerTime.Years);
|
||||
|
||||
// Ranch Windmill Payments
|
||||
if(hours % 12 == 0)
|
||||
if(ServerTime.Minutes % 720 == 0) // every 12 hours
|
||||
{
|
||||
Logger.DebugPrint("Paying windmill owners . . . ");
|
||||
foreach (Ranch ranch in Ranch.Ranches)
|
||||
|
@ -220,7 +220,7 @@ namespace HISP.Game
|
|||
{
|
||||
ServerTime.Days += 1;
|
||||
ServerTime.Minutes = 0;
|
||||
|
||||
|
||||
Database.DoIntrestPayments(ConfigReader.IntrestRate);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue