Purge all uses of printf, fprintf, perror and most uses of sprintf

Also:
- Print "Target Spell" before the explanatory prompts, instead of after (when fancy targeting)
- Fix sell costs being drawn on top of the button
- String-insensitive comparing for dialogue keys
This commit is contained in:
2015-01-08 22:26:41 -05:00
parent 8350a22ecb
commit 3ef98712d5
34 changed files with 449 additions and 798 deletions

View File

@@ -968,7 +968,7 @@ static bool talk_node_branch(cDialog& me, std::stack<short>& talk_edit_stack) {
int spec = -1;
for(int j = 0; j < 60; j++)
if(town->talking.talk_nodes[j].personality == -1 && strncmp(town->talking.talk_nodes[j].link1, "xxxx", 4) == 0) {
if(town->talking.talk_nodes[j].personality == -1 && strnicmp(town->talking.talk_nodes[j].link1, "xxxx", 4) == 0) {
spec = j;
break;
}
@@ -1107,7 +1107,7 @@ location pick_out(location default_loc) {
bool new_town(short which_town) {
// ignore parent in Mac version
printf("Town creation currently disabled.\n");
std::cout << "Town creation currently disabled.\n";
short basic_dlog_hit,i,j,store_dialog_answer;
cChoiceDlog new_dlg("new-town", {"okay", "cancel"});