fixing bugs 2913506 and 2913507

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@5284 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
flowtron
2010-07-05 18:35:16 +00:00
parent 48791b8a73
commit fd07a2be14
+6 -1
View File
@@ -50,8 +50,13 @@ void toggleedit(bool force)
selset = false;
editing = editmode ? 1 : 0;
player1->state = editing ? CS_EDITING : CS_ALIVE;
if(editing && player1->onladder) player1->onladder = false;
if(editing && (player1->weaponsel->type == GUN_SNIPER && ((sniperrifle *)player1->weaponsel)->scoped))
{
((sniperrifle *)player1->weaponsel)->onownerdies(); // or ondeselecting()
addmsg(SV_SCOPE, "ri2", lastmillis, 0);
}
if(!force) addmsg(SV_EDITMODE, "ri", editing);
// TODO (flowtron): if(editing && !_engine_knows_mappack_files_) get2knowMPfiles(); // MediaPack
}
void edittoggle() { toggleedit(false); }