diff -r 03cd33624284 -r f5eb11306c6a project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java --- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java Mon Feb 20 21:22:04 2012 +0100 +++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Datastructures/Scheme.java Mon Feb 20 21:22:21 2012 +0100 @@ -46,6 +46,7 @@ private Integer gamemod; private ArrayList basic;; private static ArrayList> basicflags = new ArrayList>();//TODO why is it static? + public int health; public Scheme(String _name, ArrayList _basic, int _gamemod){ name = _name; @@ -65,6 +66,12 @@ String command = (String)basicflag.get("command"); Integer value = basic.get(pos); + + if(command.equals("inithealth")){//Health is a special case, it doesn't need to be send + health = value; //to the engine yet, we'll do that with the other HH info + continue; + } + Boolean checkOverMax = (Boolean) basicflag.get("checkOverMax"); Boolean times1000 = (Boolean) basicflag.get("times1000"); Integer max = (Integer) basicflag.get("max"); @@ -106,6 +113,7 @@ String name = null; ArrayList basic = new ArrayList(); Integer gamemod = 0; + int health = 0; int mask = 0x000000004; int eventType = xmlPuller.getEventType();