Skip to content

Commit

Permalink
screen mines out of offsetvector when grabbing from pss
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 25, 2018
1 parent 8c431f3 commit a19738c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/PlayerStageStats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1037,9 +1037,12 @@ LuaFunction(GetGradeFromPercent, GetGradeFromPercent(FArg(1)))
// Convert to MS so lua doesn't have to
static int GetOffsetVector(T* p, lua_State* L)
{
vector<float> doot = p->m_vOffsetVector;
for (size_t i = 0; i < doot.size(); ++i)
doot[i] = doot[i] * 1000;
auto& offs = p->m_vOffsetVector;
auto& type = p->m_vTapNoteTypeVector;
vector<float> doot;
for (size_t i = 0; i < offs.size(); ++i)
if (type[i] != TapNoteType_Mine)
doot.emplace_back(offs[i] * 1000);
LuaHelpers::CreateTableFromArray(doot, L);
return 1;
}
Expand Down

0 comments on commit a19738c

Please sign in to comment.