Roman schreef:
> Author: troman
> Date: Tue Dec 26 17:39:07 2006
> New Revision: 569
>
> URL: http://svn.gna.org/viewcvs/warzone?rev=569&view=rev
> Log:
> -new 'height-map' radar mode (CTRL+TAB to cycle through radar modes)
> -revamped radar modes management
>
> Scripting engine:
> -some interpreter speedups
> -new script function to modify map tile height from scripts
> -made numeric pad keys 0-9 accessible from scripts
>
> Modified:
>     ...
>     trunk/src/keybind.c
>     ...
>   
This revision breaks compilability of keybind.c.

It uses an postfix operator ++ on an enum while an enum's basetype (e.g.
int) is undefined and therefore doesn't have such an operator.
Attached a very simple patch to fix this one.

--
Giel
Index: src/keybind.c
===================================================================
--- src/keybind.c       (revision 571)
+++ src/keybind.c       (working copy)
@@ -2531,7 +2531,7 @@
 
 void kf_ToggleRadarTerrain(void)
 {
-       radarDrawMode++;
+       radarDrawMode = radarDrawMode + 1;
 
        if(radarDrawMode >= NUM_RADAR_MODES)
                radarDrawMode = 0;

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Warzone-dev mailing list
Warzone-dev@gna.org
https://mail.gna.org/listinfo/warzone-dev

Reply via email to