GSoC/GCI Archive
Google Code-in 2012 Copyleft Games Group

Hedgewars: Invert Macro

completed by: Chris Wong

mentors: koda, Andrey Korotaev, Xeli, Sheepy

hedgewars
freepascal

Remember to join our IRC channel when working on this task! We are on #hedgewars at freenode.net. If you are new to IRC, read this tutorial from a past GCI participant.

Your task

In engine source code, every symbol used to enable/disable portions of code has a positive value: if that symbol is defined, then such feature is activated. They only exception is S3D_DISABLED, that when defined disables stereo rendering. Your task is to convert any reference of that symbol to the common format USE_S3D_RENDERING.

Deliverable

A working patch, that applies cleanly to our source tree. This patch should be in the form of a pull from clone, hg export or unified diff format (in order of preference) implementing the functionality required.