Skip to content

Latest commit

 

History

History
67 lines (58 loc) · 1.93 KB

README.md

File metadata and controls

67 lines (58 loc) · 1.93 KB

Welcome to the official FF2 repository! Build Status

Want the latest version? Check out the Releases page. You can also check out the forums to learn more. Brought to you by 50DKP.

Include File Changes


Some third-party include files were modified in order to make FF2 work properly with or without the plugin that the include file belonged to. It is highly recommended that you also make these changes when compiling FF2.

smac.inc:

  • Remove:
MarkNativeAsOptional("SMAC_CheatDetected");

rtd.inc: Inside public SharedPlugin:__pl_rtd =

  • Remove:
required = 1
  • Add:
#if defined REQUIRE_PLUGIN
required = 1
#else
required = 0
#endif

Formatting


If you wish to make a pull request, the following formatting rules should be adhered to:

  • Braces on new line
  • No spaces between parentheses or most operators (=, ==, *, |, &, etc)
    • Exception: One space between &&, ||, ;, and ,
    • Note: & and | formatting rules are currently not enforced
  • Tabs, not spaces
  • No tabs on newline
  • No whitespace after a line
  • Bracket all conditional statements, even if it is not required (one-line if statements, for example)
  • Variable names should be camel-cased (markdownIsStupid)
  • Method names should be capitalized normally (MarkNativeAsOptional)

Example:

if(markdownIsStupid)
{
	if(ubuntuIsAmazing)
	{
		while(!someOtherBoolean)
		{
			for(new i=0; i<=someOtherNumber; i+=3)
			{
				if(i==someNumber && moreVariableNames!=42)
				{
					someOtherBoolean=true;
				}
			}
		}
	}

	someBitWiseThing[someNumber]=someBitWiseThing[someNumber]|coolBitWiseVariable;
	return;
}