richardjs / zoe

AI engine for the strategy game Hive
GNU General Public License v3.0
2 stars 0 forks source link

Fix compiler errors under clang. #10

Closed edre closed 1 year ago

edre commented 1 year ago

Don't end a block with a label, and add a block around labels that define variables.

richardjs commented 1 year ago

Thanks! There's likely a number of C irregularities around the code (I only use C for game AIs), so feel free to point out or correct anything you see.

edre commented 1 year ago

My day job is C++, so I use the same strategy for C: blindly do what the compiler tells me ;)