- Moved the packet_len variable in login.c to the login parse case, since it's used nowhere else.

- timestamp check speed-up in showmsg.c
- Swapped the blank ShowMessage on server startup to a printf
- Homunculus intimacy will go back to 500 on evolution.


git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@8719 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-09-12 14:21:02 +00:00
parent 59fae741c3
commit ebc1f2bc02
6 changed files with 12 additions and 8 deletions

View File

@ -4,6 +4,7 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
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.
2006/09/12 2006/09/12
* Homunculus intimacy will go back to 500 on evolution. [Skotlex]
* Baphomet splash damage will now hit nearby enemies regardless of flee * Baphomet splash damage will now hit nearby enemies regardless of flee
(but the initial attack still has to connect for the splash to trigger) (but the initial attack still has to connect for the splash to trigger)
[Skotlex] [Skotlex]

View File

@ -183,7 +183,8 @@ static void display_title(void)
{ {
//The clearscreeen is usually more of an annoyance than anything else... [Skotlex] //The clearscreeen is usually more of an annoyance than anything else... [Skotlex]
// ClearScreen(); // clear screen and go up/left (0, 0 position in text) // ClearScreen(); // clear screen and go up/left (0, 0 position in text)
ShowMessage("\n"); //ShowMessage("\n"); //A blank message??
printf("\n");
ShowMessage(""CL_WTBL" (=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"CL_CLL""CL_NORMAL"\n"); // white writing (37) on blue background (44), \033[K clean until end of file ShowMessage(""CL_WTBL" (=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=)"CL_CLL""CL_NORMAL"\n"); // white writing (37) on blue background (44), \033[K clean until end of file
ShowMessage(""CL_XXBL" ("CL_BT_YELLOW" (c)2005 eAthena Development Team presents "CL_XXBL")"CL_CLL""CL_NORMAL"\n"); // yellow writing (33) ShowMessage(""CL_XXBL" ("CL_BT_YELLOW" (c)2005 eAthena Development Team presents "CL_XXBL")"CL_CLL""CL_NORMAL"\n"); // yellow writing (33)
ShowMessage(""CL_XXBL" ("CL_BOLD" ______ __ __ "CL_XXBL")"CL_CLL""CL_NORMAL"\n"); // 1: bold char, 0: normal char ShowMessage(""CL_XXBL" ("CL_BOLD" ______ __ __ "CL_XXBL")"CL_CLL""CL_NORMAL"\n"); // 1: bold char, 0: normal char

View File

@ -52,7 +52,7 @@ int _vShowMessage(enum msg_type flag, const char *string, va_list ap)
return 1; return 1;
} }
if (strlen(timestamp_format) > 0) if (timestamp_format[0])
{ //Display time format. [Skotlex] { //Display time format. [Skotlex]
time_t t = time(NULL); time_t t = time(NULL);
strftime(prefix, 80, timestamp_format, localtime(&t)); strftime(prefix, 80, timestamp_format, localtime(&t));

View File

@ -20,7 +20,7 @@
#include <time.h> #include <time.h>
#include "timer.h" #include "timer.h"
#include "../common/malloc.h" #include "malloc.h"
#include "showmsg.h" #include "showmsg.h"
// タイマー間隔の最小値。モンスターの大量召還時、多数のクライアント接続時に // タイマー間隔の最小値。モンスターの大量召還時、多数のクライアント接続時に

View File

@ -3057,7 +3057,6 @@ int parse_login(int fd) {
unsigned char *p = (unsigned char *) &session[fd]->client_addr.sin_addr; unsigned char *p = (unsigned char *) &session[fd]->client_addr.sin_addr;
char ip[16]; char ip[16];
long subnet_char_ip; long subnet_char_ip;
int packet_len;
RFIFOHEAD(fd); RFIFOHEAD(fd);
@ -3098,7 +3097,8 @@ int parse_login(int fd) {
case 0x277: // New login packet case 0x277: // New login packet
case 0x64: // request client login case 0x64: // request client login
case 0x01dd: // request client login with encrypt case 0x01dd: // request client login with encrypt
packet_len = RFIFOREST(fd); {
int packet_len = RFIFOREST(fd);
switch(RFIFOW(fd, 0)){ switch(RFIFOW(fd, 0)){
case 0x64: case 0x64:
@ -3231,7 +3231,7 @@ int parse_login(int fd) {
} }
RFIFOSKIP(fd,packet_len); RFIFOSKIP(fd,packet_len);
break; break;
}
case 0x01db: // Sending request of the coding key case 0x01db: // Sending request of the coding key
case 0x791a: // Sending request of the coding key (administration packet) case 0x791a: // Sending request of the coding key (administration packet)
{ {

View File

@ -288,9 +288,11 @@ int merc_hom_evolution(struct homun_data *hd)
merc_hom_vaporize(sd, 0); merc_hom_vaporize(sd, 0);
if (!merc_hom_change_class(hd, hd->homunculusDB->evo_class)) if (!merc_hom_change_class(hd, hd->homunculusDB->evo_class)) {
ShowError("merc_hom_evolution: Can't evoluate homunc from %d to %d", hd->master->homunculus.class_, hd->homunculusDB->evo_class); ShowError("merc_hom_evolution: Can't evoluate homunc from %d to %d", hd->master->homunculus.class_, hd->homunculusDB->evo_class);
return 0;
}
sd->homunculus.intimacy = 500;
merc_call_homunculus(sd, hd->bl.x, hd->bl.y); merc_call_homunculus(sd, hd->bl.x, hd->bl.y);
clif_emotion(&sd->bl, 21); //no1 clif_emotion(&sd->bl, 21); //no1
clif_misceffect2(&hd->bl,568); clif_misceffect2(&hd->bl,568);