Skip to content

Commit

Permalink
Update of loadHitboxes() to apply with Calibrator 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Dec 6, 2014
1 parent dfe74ba commit 8d7cf5e
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions LunaDll/LuaMain/LuaProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,12 @@ void LuaProxy::loadHitboxes(int _character, int _powerup, const char *ini_file)
case 1:
case 2:
case 3:
//normal
width = hitBoxFile.Get("frame-5-0", "width", "-1");
height = hitBoxFile.Get("frame-5-0", "height", "-1");
//duck
height_duck = hitBoxFile.Get("frame-5-6", "height", "-1");
break;
case 4:
//normal
width = hitBoxFile.Get("frame-5-0", "width", "-1");
height = hitBoxFile.Get("frame-5-0", "height", "-1");
width = hitBoxFile.Get("common", "width", "-1");
height = hitBoxFile.Get("common", "height", "-1");
//duck
height_duck = hitBoxFile.Get("frame-5-4", "height", "-1");
height_duck = hitBoxFile.Get("common", "height-duck", "-1");
break;
default:
MessageBoxA(0, "Wrong character ID", "Error", 0);
Expand Down

0 comments on commit 8d7cf5e

Please sign in to comment.