Quote:
Originally Posted by Dayrion
Pretty impressive script. ![shocked](images/smilies/eek.png)
Also, why does he needs to do that?
PHP Code:
public OnGameModeInit()
{
print("[OnGameModeInit] Initialising 'Main'...");
OnGameModeInit_Setup(); // why does he make a function instead of putting the code here?
#if defined main_OnGameModeInit
return main_OnGameModeInit();
#else
return 1;
#endif
}
#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit main_OnGameModeInit
#if defined main_OnGameModeInit
forward main_OnGameModeInit();
#endif
|
Easier to debug and extend later.