[odamex-bug-reporter] [Bug 643] "Stuck" Spawns

  • From: odamex-bugtracker@xxxxxxxxxx
  • To: odamex-bug-reporter@xxxxxxxxxxxxx
  • Date: Sun, 26 Sep 2010 23:32:30 +0000 (UTC)

http://odamex.net/bugs/show_bug.cgi?id=643

--- Comment #2 from Kyle <elykdav@xxxxxxxxx> 2010-09-26 23:32:30 UTC ---
This diff causes similar results every time a player spawns:

Index: server/src/p_mobj.cpp
===================================================================
--- server/src/p_mobj.cpp    (revision 1948)
+++ server/src/p_mobj.cpp    (working copy)
@@ -1344,7 +1344,10 @@

     p->fov = 90.0f;
     p->camera = p->mo = mobj->ptr();
-    p->playerstate = PST_LIVE;
+    if(!p->spectator)
+        p->playerstate = PST_DEAD;
+    else
+        p->playerstate = PST_LIVE;
     p->refire = 0;
     p->damagecount = 0;
     p->bonuscount = 0;

-- 
Configure bugmail: http://odamex.net/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Other related posts: