Added comments.
This commit is contained in:
parent
ea0265e200
commit
4b6ea77913
|
@ -219,7 +219,7 @@ int main()
|
|||
attroff(COLOR_PAIR(map[aMap].Info[C].c));
|
||||
}
|
||||
|
||||
// If we're hovering over the given info tile
|
||||
// If we're hovering over the given info tile and it's active
|
||||
if ((map[aMap].Info[C].x - (xmax / 2) == x) && (map[aMap].Info[C].active) &&
|
||||
(map[aMap].Info[C].y - (ymax / 2) == y))
|
||||
{
|
||||
|
@ -241,7 +241,7 @@ int main()
|
|||
attroff(COLOR_PAIR(map[aMap].Item[C].c));
|
||||
}
|
||||
|
||||
// If we're hovering over the given item tile
|
||||
// If we're hovering over the given item tile and it's active
|
||||
if ((map[aMap].Item[C].x - (xmax / 2) == x) && (map[aMap].Item[C].active) &&
|
||||
(map[aMap].Item[C].y - (ymax / 2) == y))
|
||||
{
|
||||
|
@ -263,7 +263,7 @@ int main()
|
|||
attroff(COLOR_PAIR(map[aMap].Door[C].c));
|
||||
}
|
||||
|
||||
// If we're hovering over the given item tile
|
||||
// If we're hovering over the given item tile and it's active
|
||||
if ((map[aMap].Door[C].x - (xmax / 2) == x) && (map[aMap].Door[C].active) &&
|
||||
(map[aMap].Door[C].y - (ymax / 2) == y))
|
||||
{
|
||||
|
@ -288,7 +288,7 @@ int main()
|
|||
attroff(COLOR_PAIR(map[aMap].Char[C].c));
|
||||
}
|
||||
|
||||
// If we're hovering over the given char tile
|
||||
// If we're hovering over the given char tile and it's active
|
||||
if ((map[aMap].Char[C].x - (xmax / 2) == x) && (map[aMap].Char[C].active) &&
|
||||
(map[aMap].Char[C].y - (ymax / 2) == y))
|
||||
{
|
||||
|
@ -342,6 +342,7 @@ int main()
|
|||
if (k == KEY_F(5))
|
||||
{
|
||||
echo();
|
||||
//Get our save name
|
||||
mvprintw(4, 0, "Save name: ");
|
||||
getnstr(buffer1, 8);
|
||||
|
||||
|
@ -350,6 +351,7 @@ int main()
|
|||
if (k == KEY_F(6))
|
||||
{
|
||||
echo();
|
||||
//Get our load name
|
||||
mvprintw(4, 0, "Load name: ");
|
||||
getnstr(buffer1, 8);
|
||||
|
||||
|
@ -365,11 +367,15 @@ int main()
|
|||
turnTip();
|
||||
if (k == ' ')
|
||||
addBase(x, y, aMap, xmax, ymax, Btip, BtipColor, BtipWalk);
|
||||
if (continuousPainting == 1) // If continuous painting is on
|
||||
if (continuousPainting == 1)
|
||||
{
|
||||
// If continuous painting is on
|
||||
addBase(x, y, aMap, xmax, ymax, Btip, BtipColor, BtipWalk);
|
||||
}
|
||||
if (k == 'i')
|
||||
{
|
||||
echo();
|
||||
// Prompt for our info
|
||||
mvprintw(5, 0, "Which character would you like to print? ");
|
||||
getnstr(buffer1, 1);
|
||||
t = buffer1[0];
|
||||
|
@ -383,6 +389,7 @@ int main()
|
|||
if (k == 'o')
|
||||
{
|
||||
echo();
|
||||
// Prompt for our info
|
||||
mvprintw(5, 0, "Which character would you like to print? ");
|
||||
getnstr(buffer1, 1);
|
||||
t = buffer1[0];
|
||||
|
@ -397,6 +404,7 @@ int main()
|
|||
if (k == 'd')
|
||||
{
|
||||
echo();
|
||||
// Prompt for our info
|
||||
mvprintw(5, 0, "Which character would you like to print? ");
|
||||
getnstr(buffer1, 1);
|
||||
t = buffer1[0];
|
||||
|
@ -420,6 +428,7 @@ int main()
|
|||
if (k == 'p')
|
||||
{
|
||||
echo();
|
||||
// Prompt for our info
|
||||
mvprintw(5, 0, "Which character would you like to print? ");
|
||||
getnstr(buffer1, 1);
|
||||
t = buffer1[0];
|
||||
|
|
Loading…
Reference in New Issue