FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

#5 - Taskforce Fix (ADDED-CLOSED)

 
Post new topic   Reply to topic    Drop Shock Forum Index -> Open Source
View previous topic :: View next topic  
Author Message
khaibar
Advanced


Joined: 14 Dec 2007
Posts: 1143

PostPosted: Thu Jun 28, 2012 11:20 am    Post subject: #5 - Taskforce Fix (ADDED-CLOSED) Reply with quote

In response to
http://forum.mobrulestudios.com/viewtopic.php?t=14706

I think dead units are still tagged in task forces resulting in this issue

Files: process_turn.php

insert on line 5284

Code:

$db->query("DELETE  FROM tinywarz_live.units_tf WHERE i_owner=? and unit_id=? ", array($unitdata[$weapon->target_id]["i_owner"],$unitdata[$weapon->target_id]["i_on_unit"]));


not sure on the unit_id field though, I don't have access to table structure so I don't know what u refer to as unit id in that table.

issue resulted from process_map.php line 591

Code:


$data =& $db->getCol("SELECT unit_id id FROM tinywarz_live.units_tf WHERE i_owner=? and taskforce=? ",
      'id', array($userid,$iactor));


in process_turn.php, there are no queries related to units_tf table so I guess when deployed that table is never modified. And hence redeployed units after being salvaged by other players are still tagged in the task force table. If redeployed (same unit id), and the original owner of the unit uses task force the redeployed unit will be affected.
Back to top
View user's profile Send private message
Frizz
Site Admin


Joined: 10 Jun 2005
Posts: 3814

PostPosted: Thu Jul 12, 2012 8:15 am    Post subject: Reply with quote

Added to source,

_f
_________________

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Drop Shock Forum Index -> Open Source All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group