mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
time: rewrite unix() function
This commit is contained in:

committed by
Alexander Medvednikov

parent
67912c692b
commit
286a0a1371
@ -173,7 +173,7 @@ fn main() {
|
||||
|
||||
fn (g mut Game) init_game() {
|
||||
g.parse_tetros()
|
||||
rand.seed(time.now().uni)
|
||||
rand.seed(time.now().unix)
|
||||
g.generate_tetro()
|
||||
g.field = [] // TODO: g.field = [][]int
|
||||
// Generate the field, fill it with 0's, add -1's on each edge
|
||||
|
Reference in New Issue
Block a user