Need to obtain the current turn-holder index before checking to see if the
submitting player is the current turn-holder. git-svn-id: https://samskivert.googlecode.com/svn/trunk@468 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: AtlantiManager.java,v 1.18 2001/11/24 08:26:52 shaper Exp $
|
// $Id: AtlantiManager.java,v 1.19 2001/11/24 22:41:21 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.venison;
|
package com.threerings.venison;
|
||||||
|
|
||||||
@@ -692,6 +692,7 @@ public class VenisonManager
|
|||||||
{
|
{
|
||||||
public void handleEvent (MessageEvent event)
|
public void handleEvent (MessageEvent event)
|
||||||
{
|
{
|
||||||
|
int pidx = getTurnHolderIndex();
|
||||||
if (_playerOids[pidx] != event.getSourceOid()) {
|
if (_playerOids[pidx] != event.getSourceOid()) {
|
||||||
Log.warning("Requested to place nothing by non-turn holder " +
|
Log.warning("Requested to place nothing by non-turn holder " +
|
||||||
"[event=" + event +
|
"[event=" + event +
|
||||||
|
|||||||
Reference in New Issue
Block a user