00001 00005 /* 00006 Copyright (C) 2002-2010 UFO: Alien Invasion. 00007 00008 This program is free software; you can redistribute it and/or 00009 modify it under the terms of the GNU General Public License 00010 as published by the Free Software Foundation; either version 2 00011 of the License, or (at your option) any later version. 00012 00013 This program is distributed in the hope that it will be useful, 00014 but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 00017 See the GNU General Public License for more details. 00018 00019 You should have received a copy of the GNU General Public License 00020 along with this program; if not, write to the Free Software 00021 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00022 00023 */ 00024 00025 #include "../../../../client.h" 00026 #include "../../../cl_localentity.h" 00027 #include "e_event_actorresetclientaction.h" 00028 00034 void CL_ActorResetClientAction (const eventRegister_t *self, struct dbuffer *msg) 00035 { 00036 le_t* le; 00037 int number; 00038 00039 /* read data */ 00040 NET_ReadFormat(msg, self->formatString, &number); 00041 00042 /* get actor le */ 00043 le = LE_Get(number); 00044 if (!le) 00045 LE_NotFoundError(number); 00046 00047 /* reset client action entity */ 00048 le->clientAction = NULL; 00049 Com_DPrintf(DEBUG_CLIENT, "CL_ActorResetClientAction: Reset client action for actor with entnum %i\n", number); 00050 }