QTfrontend/gamecfgwidget.cpp
changeset 4000 ddc4a09889e7
parent 3943 9835060e5c01
child 4003 ca0600ab38bf
equal deleted inserted replaced
3999:411e71912f4c 4000:ddc4a09889e7
    99 quint32 GameCFGWidget::getGameFlags() const
    99 quint32 GameCFGWidget::getGameFlags() const
   100 {
   100 {
   101     quint32 result = 0;
   101     quint32 result = 0;
   102 
   102 
   103     if (schemeData(1).toBool())
   103     if (schemeData(1).toBool())
   104         result |= 0x01;
   104         result |= 0x00001000;
   105     if (schemeData(2).toBool())
   105     if (schemeData(2).toBool())
   106         result |= 0x10;
   106         result |= 0x00000010;
   107     if (schemeData(3).toBool())
   107     if (schemeData(3).toBool())
   108         result |= 0x04;
   108         result |= 0x00000004;
   109     if (schemeData(4).toBool())
   109     if (schemeData(4).toBool())
   110         result |= 0x08;
   110         result |= 0x00000008;
   111     if (schemeData(5).toBool())
   111     if (schemeData(5).toBool())
   112         result |= 0x20;
   112         result |= 0x00000020;
   113     if (schemeData(6).toBool())
   113     if (schemeData(6).toBool())
   114         result |= 0x40;
   114         result |= 0x00000040;
   115     if (schemeData(7).toBool())
   115     if (schemeData(7).toBool())
   116         result |= 0x80;
   116         result |= 0x00000080;
   117     if (schemeData(8).toBool())
   117     if (schemeData(8).toBool())
   118         result |= 0x100;
   118         result |= 0x00000100;
   119     if (schemeData(9).toBool())
   119     if (schemeData(9).toBool())
   120         result |= 0x200;
   120         result |= 0x00000200;
   121     if (schemeData(10).toBool())
   121     if (schemeData(10).toBool())
   122         result |= 0x400;
   122         result |= 0x00000400;
   123     if (schemeData(11).toBool())
   123     if (schemeData(11).toBool())
   124         result |= 0x800;
   124         result |= 0x00000800;
   125     if (schemeData(12).toBool())
   125     if (schemeData(12).toBool())
   126         result |= 0x2000;
   126         result |= 0x00002000;
   127     if (schemeData(13).toBool())
   127     if (schemeData(13).toBool())
   128         result |= 0x4000;
   128         result |= 0x00004000;
   129     if (schemeData(14).toBool())
   129     if (schemeData(14).toBool())
   130         result |= 0x8000;
   130         result |= 0x00008000;
   131     if (schemeData(15).toBool())
   131     if (schemeData(15).toBool())
   132         result |= 0x10000;
   132         result |= 0x00010000;
   133     if (schemeData(16).toBool())
   133     if (schemeData(16).toBool())
   134         result |= 0x20000;
   134         result |= 0x00020000;
   135     if (schemeData(17).toBool())
   135     if (schemeData(17).toBool())
   136         result |= 0x80000;
   136         result |= 0x00040000;
   137     if (schemeData(18).toBool())
   137     if (schemeData(18).toBool())
   138         result |= 0x100000;
   138         result |= 0x00080000;
   139     if (schemeData(19).toBool())
   139     if (schemeData(19).toBool())
   140         result |= 0x200000;
   140         result |= 0x00100000;
   141     if (schemeData(20).toBool())
   141     if (schemeData(20).toBool())
   142         result |= 0x400000;
   142         result |= 0x00200000;
   143     if (schemeData(21).toBool())
   143     if (schemeData(21).toBool())
   144         result |= 0x800000;
   144         result |= 0x00400000;
   145 
   145 
   146     return result;
   146     return result;
   147 }
   147 }
   148 
   148 
   149 quint32 GameCFGWidget::getInitHealth() const
   149 quint32 GameCFGWidget::getInitHealth() const