Skip to content

Commit

Permalink
day/night cycles are 10 minutes, nights are longer
Browse files Browse the repository at this point in the history
  • Loading branch information
fogleman committed Jan 29, 2014
1 parent ba4cf5f commit 2fb4f80
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server.py
Expand Up @@ -22,7 +22,7 @@
BUFFER_SIZE = 4096
COMMIT_INTERVAL = 5

DAY_LENGTH = 300
DAY_LENGTH = 600
SPAWN_POINT = (0, 0, 0, 0, 0)
RATE_LIMIT = False
RECORD_HISTORY = False
Expand Down
2 changes: 1 addition & 1 deletion src/config.h
Expand Up @@ -11,7 +11,7 @@
#define MAX_MESSAGES 4
#define DB_PATH "craft.db"
#define USE_CACHE 1
#define DAY_LENGTH 300
#define DAY_LENGTH 600
#define INVERT_MOUSE 0

// rendering options
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Expand Up @@ -149,7 +149,7 @@ float get_daylight() {
return 1 / (1 + powf(2, -t));
}
else {
float t = (timer - 0.90) * 100;
float t = (timer - 0.85) * 100;
return 1 - 1 / (1 + powf(2, -t));
}
}
Expand Down
Binary file modified textures/sky.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

1 comment on commit 2fb4f80

@Dekois
Copy link

@Dekois Dekois commented on 2fb4f80 Mar 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

real.

Please sign in to comment.