fix gcc warning, probably also the logic

comparing two char pointers doesn't compare the strings
This commit is contained in:
degasus 2013-06-20 10:43:09 +02:00
parent fb310f2247
commit 010165b2c2
1 changed files with 2 additions and 2 deletions

View File

@ -107,12 +107,12 @@ void InputConfigDialog::UpdateBitmaps(wxTimerEvent& WXUNUSED(event))
, d_of = box / 256.0
, x_of = box / 2.0;
if ((*g)->control_group->name == "Main Stick")
if (strcmp((*g)->control_group->name, "Main Stick") == 0)
{
max = (87.0 / 127.0) * 100;
diagonal = (55.0 / 127.0) * 100.0;
}
else if ((*g)->control_group->name == "C-Stick")
else if (strcmp((*g)->control_group->name,"C-Stick") == 0)
{
max = (74.0 / 127.0) * 100;
diagonal = (46.0 / 127.0) * 100;