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

#18 - Exclude TF Unit removal from Arena/Wulf (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: 1141

PostPosted: Sun Sep 02, 2012 11:12 am    Post subject: #18 - Exclude TF Unit removal from Arena/Wulf (ADDED-CLOSED) Reply with quote

File: process_turn.php on line 5085

before

Code:

//Attempt to remove unit from task force
    if ($unitdata[$weapon->target_id]["unit_id"] != NULL) {
                    $sql  = "DELETE FROM tinywarz_live.units_tf WHERE i_owner=? AND unit_id=? ";
                    $res =& $db->query($sql, Array($unitdata[$weapon->target_id]["i_owner"],$unitdata[$weapon->target_id]["unit_id"]) );
                    if (DB::isError($res)) { ReportDBError($res); }


I assume that $planet_duel refers to practice planets (wulf and arenas)?

after

Code:

//Attempt to remove unit from task force
    if ( ($unitdata[$weapon->target_id]["unit_id"] != NULL) AND ($planet_duel == "N") ) {
                    $sql  = "DELETE FROM tinywarz_live.units_tf WHERE i_owner=? AND unit_id=? ";
                    $res =& $db->query($sql, Array($unitdata[$weapon->target_id]["i_owner"],$unitdata[$weapon->target_id]["unit_id"]) );
                    if (DB::isError($res)) { ReportDBError($res); }
                }


if $planet_duel is not enough simply replace it with check for arena planet or wulf

Note: this may lead to the 'auto move' issue to persist on arenas and wulf but that can be accepted. People are rearranging their TFs after every wulf fight which are unfortunately occurring more than actual fights

Ticket link: https://sourceforge.net/p/dropshock/tickets/18/
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