Deviding a define number for two cases
If BALL_AMOUNT is 6 then I'd like SPAWN_1 to spawn 3 entities and SPAWN_2, spawn the other 3 entities, so half of what is defined.
How would I accomplish this with enum cases? PHP Code:
|
Re: Deviding a define number for two cases
Code:
|
Re: Deviding a define number for two cases
Quote:
|
Re: Deviding a define number for two cases
% is the modulo-operator
|
| All times are GMT -4. The time now is 15:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.