summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Haley2014-11-01 19:08:39 -0500
committerJames Haley2014-11-01 19:08:39 -0500
commit12ecb4550e46ffdc28248be185738a88be033afd (patch)
treecfc33cbcdb7dc1bc88e936bf6de358fbcea87dfd
parent563d83b675bf201bf1df5e626b81f9ddb568c8b7 (diff)
downloadchocolate-doom-12ecb4550e46ffdc28248be185738a88be033afd.tar.gz
chocolate-doom-12ecb4550e46ffdc28248be185738a88be033afd.tar.bz2
chocolate-doom-12ecb4550e46ffdc28248be185738a88be033afd.zip
Automap accuracy fixes
* Grid is not supported and gives no such message * Spot marking behavior is substantially different
-rw-r--r--src/doom/am_map.c20
-rw-r--r--src/strife/d_englsh.h2
2 files changed, 17 insertions, 5 deletions
diff --git a/src/doom/am_map.c b/src/doom/am_map.c
index d3d504e3..ee1df195 100644
--- a/src/doom/am_map.c
+++ b/src/doom/am_map.c
@@ -344,7 +344,8 @@ void AM_addMark(void)
{
markpoints[markpointnum].x = m_x + m_w/2;
markpoints[markpointnum].y = m_y + m_h/2;
- markpointnum = (markpointnum + 1) % AM_NUMMARKPOINTS;
+ //markpointnum = (markpointnum + 1) % AM_NUMMARKPOINTS;
+ ++markpointnum; // haleyjd 20141101 [STRIFE]: does not wrap around
}
@@ -672,6 +673,8 @@ AM_Responder
else
plr->message = DEH_String(AMSTR_FOLLOWOFF);
}
+ // haleyjd 20141101 [STRIFE]: grid is not supported
+ /*
else if (key == key_map_grid)
{
grid = !grid;
@@ -680,17 +683,26 @@ AM_Responder
else
plr->message = DEH_String(AMSTR_GRIDOFF);
}
+ */
else if (key == key_map_mark)
{
+ // haleyjd 20141101 [STRIFE]: if full, mark 10 is replaced
+ if(markpointnum == AM_NUMMARKPOINTS)
+ --markpointnum;
M_snprintf(buffer, sizeof(buffer), "%s %d",
- DEH_String(AMSTR_MARKEDSPOT), markpointnum);
+ DEH_String(AMSTR_MARKEDSPOT), markpointnum + 1); // [STRIFE]: +1
plr->message = buffer;
AM_addMark();
}
else if (key == key_map_clearmark)
{
- AM_clearMarks();
- plr->message = DEH_String(AMSTR_MARKSCLEARED);
+ // haleyjd 20141101 [STRIFE]: modified to only clear last mark
+ if(markpointnum > 0)
+ {
+ markpoints[markpointnum - 1].x = -1;
+ --markpointnum;
+ plr->message = DEH_String(AMSTR_MARKSCLEARED);
+ }
}
else
{
diff --git a/src/strife/d_englsh.h b/src/strife/d_englsh.h
index 9d58e7d9..0f78f21a 100644
--- a/src/strife/d_englsh.h
+++ b/src/strife/d_englsh.h
@@ -227,7 +227,7 @@
#define AMSTR_GRIDOFF "Grid OFF"
#define AMSTR_MARKEDSPOT "Marked Spot"
-#define AMSTR_MARKSCLEARED "All Marks Cleared"
+#define AMSTR_MARKSCLEARED "Last Mark Cleared" // [STRIFE]
//
// ST_stuff.C