We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I create an enum struct, after applying the formatter, the indentation breaks apart and brackets are placed incorrectly. Before formatting:
enum struct SpawnPoint { float pos[3]; // Orientative position in the world int spawnFlags; // Flags to define the spawn properties Address navArea; // Nav area attached to use to spawn bool Spawn(const float pos[3], spawnFlags) { this.pos = pos; this.spawnFlags = spawnFlags; if (!this.GetNavArea()) { this.pos = NULL_VECTOR; this.spawnFlags = 0; return false; } return true; } bool GetNavArea() { this.navArea = L4D_GetNearestNavArea(this.pos); return this.navArea != Address_Null; } }
After formatting
enum struct SpawnPoint { float pos[3]; // Orientative position in the world int spawnFlags; // Flags to define the spawn properties Address navArea; // Nav area attached to use to spawn bool Spawn(const float pos[3], spawnFlags){ this.pos = pos; this.spawnFlags = spawnFlags; if (!this.GetNavArea()){ this.pos = NULL_VECTOR; this.spawnFlags = 0; return false; } return true; } bool GetNavArea() { this.navArea = L4D_GetNearestNavArea(this.pos); return this.navArea != Address_Null; } }
The text was updated successfully, but these errors were encountered:
Sarrus1
No branches or pull requests
Basic informations
Further Information
If I create an enum struct, after applying the formatter, the indentation breaks apart and brackets are placed incorrectly.
Before formatting:
After formatting
The text was updated successfully, but these errors were encountered: