diff --git a/.vscode/settings.json b/.vscode/settings.json index aae5fb3..ba011ba 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -14,8 +14,11 @@ "vscode-codscript.use_builtin_completionItems": false } +// use below to verify no single line blocks with no braces +// $ egrep -ron "^\s*(if|while|for|switch).*\)\s*[\r\n]+\s*[^\s{]" --include \*.gsc ./ + // use below to verify array indexing spacing style -// egrep -ron "(\[\S|\S\])" --include \*.gsc ./ | egrep -v "\[\[" | egrep -v "\]\]" | egrep -v "\[\]" +// $ egrep -ron "(\[\S|\S\])" --include \*.gsc ./ | egrep -v "\[\[" | egrep -v "\]\]" | egrep -v "\[\]" // python script for casing fixes i did /* diff --git a/maps/mp/bots/_bot_utility.gsc b/maps/mp/bots/_bot_utility.gsc index 401a889..cd49d91 100644 --- a/maps/mp/bots/_bot_utility.gsc +++ b/maps/mp/bots/_bot_utility.gsc @@ -1372,7 +1372,9 @@ readWpsFromFile( mapname ) line += fgetarg( f, h ); if ( h < argc - 1 ) + { line += ","; + } } if ( !isdefined( line ) || line == "" )