Core: Fix assigning to arrays

This commit is contained in:
Krzosa Karol
2023-04-21 09:45:57 +02:00
parent ef243724dc
commit 51cebbf4d0
3 changed files with 53 additions and 48 deletions

View File

@@ -45,14 +45,6 @@ guys: Array(Guy)
Add(&guys, {100, 100})
*/
// @reproduction
//
//
// 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 ^ ^
#import "raylib.core"
#load "array.core"
MAP :: #load "map.core"
@@ -87,8 +79,6 @@ 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")
// SetMasterVolume(0.01)