Browse Source

fix potential crash on entry

master
Alison Watson 2 months ago
parent
commit
aa8a9b989c
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      pk7/lzscript/Player/Base.zsc

+ 5
- 0
pk7/lzscript/Player/Base.zsc View File

@@ -137,6 +137,11 @@ private void Lith_ItemVacuum() {
}

int, int, bool Lith_Unproject(vector3 loc) {
if(!m_QY || !m_QP) {
/* not initialized, fuck off */
return -1000, -1000, false;
}

/* create (view-adjusted) normalized vector for where we're looking */
vector3 la = pos - loc;
la.z = (player.viewz - loc.z) * level.pixelstretch;


Loading…
Cancel
Save