#include "constants.h"
#include "control.h"
#include "locomotive.h"
+#include "locotype.h"
#include "reply.h"
using namespace std;
data[3] |= (1<<i);
}
control.command(CMD_LOK, data, 4);
+
+ if(setf && type.get_max_function()>4)
+ {
+ if(!++data[0])
+ ++data[1];
+ data[2] = 0;
+ data[3] = 0xA0;
+ for(unsigned i=0; i<4; ++i)
+ if((funcs>>i)&32)
+ data[3] |= (1<<i);
+ control.command(CMD_LOK, data, 4);
+ }
}
void Locomotive::status_reply(const Reply &reply)