* Reverted a bad modification in clif_produceeffect from r11290.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11988 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
FlavioJS 2007-12-28 14:43:15 +00:00
parent d75169014a
commit 548e1bfd28
2 changed files with 7 additions and 2 deletions

View File

@ -3,6 +3,8 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2007/12/28
* Reverted a bad modification in clif_produceeffect from r11290. [FlavioJS]
2007/12/27 2007/12/27
* Removed an incorrect range check and fixed a copypaste typo which * Removed an incorrect range check and fixed a copypaste typo which
caused script engine errors / crashes (see r11984) caused script engine errors / crashes (see r11984)

View File

@ -5653,7 +5653,7 @@ int clif_movetoattack(struct map_session_data *sd,struct block_list *bl)
*------------------------------------------*/ *------------------------------------------*/
int clif_produceeffect(struct map_session_data* sd,int flag,int nameid) int clif_produceeffect(struct map_session_data* sd,int flag,int nameid)
{ {
int fd; int view,fd;
nullpo_retr(0, sd); nullpo_retr(0, sd);
@ -5662,7 +5662,10 @@ int clif_produceeffect(struct map_session_data* sd,int flag,int nameid)
WFIFOHEAD(fd,packet_len(0x18f)); WFIFOHEAD(fd,packet_len(0x18f));
WFIFOW(fd, 0)=0x18f; WFIFOW(fd, 0)=0x18f;
WFIFOW(fd, 2)=flag; WFIFOW(fd, 2)=flag;
WFIFOW(fd, 4)=(itemdb_viewid(nameid)||nameid); if((view = itemdb_viewid(nameid)) > 0)
WFIFOW(fd, 4)=view;
else
WFIFOW(fd, 4)=nameid;
WFIFOSET(fd,packet_len(0x18f)); WFIFOSET(fd,packet_len(0x18f));
return 0; return 0;
} }