Skip to content

Commit

Permalink
Merge pull request #236 from sean-gilliam/fix-greeting
Browse files Browse the repository at this point in the history
Fix login banner
  • Loading branch information
rezalas authored Oct 24, 2023
2 parents 390b07b + 0abe1fe commit 07f4aa1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
2 changes: 2 additions & 0 deletions code/bootup.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <stdlib.h>
#include <string.h>
#include "rift.h"
#include "newmem.h"
#include "area.h"
#include "room.h"
#include "exit.h"
Expand Down Expand Up @@ -298,6 +299,7 @@ void CMud::LoadGreetingScreen()
buf[i-2] = '\0';
fclose(fp);
greeting_screen = buf;
help_greeting = palloc_string(buf);
}

void CMud::InitializeTables()
Expand Down
11 changes: 0 additions & 11 deletions code/mud.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "mud.h"
#include "merc.h"
#include "update.h"
#include "newmem.h"
#include "dioextra.h"
#include "db.h"
#include "db2.h"
Expand Down Expand Up @@ -105,17 +104,7 @@ bool CMud::Bootup()
weather_update();
RS.Log("Priming weather");
reset_chessboard();
fp = fopen(LOGIN_BANNER_FILE, "r");
while(fgets(tempbuf,200,fp))
{
strcat(buf,tempbuf);
strcat(buf,"\r");
}
fclose(fp);
gold_constant = std::stol(Settings.GetValue("Gold"));
chop(buf);
chop(buf);
help_greeting = palloc_string(buf);
update_db_gold();

//CSocket::InitializeSockets();
Expand Down

0 comments on commit 07f4aa1

Please sign in to comment.