Core: Fix array counting

This commit is contained in:
Krzosa Karol
2023-04-21 09:36:33 +02:00
parent 9edb03e1bb
commit ef243724dc
3 changed files with 5 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ Add(&guys, {100, 100})
// @reproduction
// MAP: [16*16]int = {0, 1}
//
//
// This generates: int MAP[256] = (int [256]){[0] = 0, [0] = 1}; it doesn't work because of the (int[256]) is this MSVC being retarded here? not supporting C properly?
// Also this ^ ^
@@ -87,6 +87,7 @@ MouseSelectedActors: Array(*MAP.Actor) // @todo: ids
main :: (): int
MAP.Init()
// HERE_IT_IS: [16*16]int = {0, 1}
// InitAudioDevice()
// sound := LoadSound("catune - Pass the town, and to the C.mp3")