AGI: Renamed some #defines to our code conventions and moved them to enums

This commit is contained in:
Eugene Sandulenko 2011-08-14 18:47:51 +01:00
parent 026a2c52da
commit 273e37f726
10 changed files with 182 additions and 176 deletions

View file

@ -180,7 +180,7 @@ int AgiEngine::handleController(int key) {
if (!(getFeatures() & GF_AGIMOUSE)) {
// Handle mouse button events
if (key == BUTTON_LEFT) {
v->flags |= ADJ_EGO_XY;
v->flags |= fAdjEgoXY;
v->parm1 = WIN_TO_PIC_X(_mouse.x);
v->parm2 = WIN_TO_PIC_Y(_mouse.y);
return true;
@ -188,7 +188,7 @@ int AgiEngine::handleController(int key) {
}
if (d || key == KEY_STATIONARY) {
v->flags &= ~ADJ_EGO_XY;
v->flags &= ~fAdjEgoXY;
v->direction = v->direction == d ? 0 : d;
return true;
}