Mercurial > hg > early-roguelike
comparison urogue/rip.c @ 281:4a3f4729257c
Merge the urogue and bugfix branches.
author | John "Elwin" Edwards |
---|---|
date | Fri, 15 Sep 2017 21:16:28 -0400 |
parents | 1bbdd13ec585 |
children | 0250220d8cdd |
comparison
equal
deleted
inserted
replaced
280:70aa5808c782 | 281:4a3f4729257c |
---|---|
167 mvaddstr(14, 28 - ((int)(strlen(whoami) + 1) / 2), whoami); | 167 mvaddstr(14, 28 - ((int)(strlen(whoami) + 1) / 2), whoami); |
168 sprintf(buf, "%d+%ld Points", pstats.s_lvl, pstats.s_exp); | 168 sprintf(buf, "%d+%ld Points", pstats.s_lvl, pstats.s_exp); |
169 mvaddstr(15, 28 - ((int)(strlen(buf) + 1) / 2), buf); | 169 mvaddstr(15, 28 - ((int)(strlen(buf) + 1) / 2), buf); |
170 killer = killname(monst,buf); | 170 killer = killname(monst,buf); |
171 mvaddstr(17, 28 - ((int)(strlen(killer) + 1) / 2), killer); | 171 mvaddstr(17, 28 - ((int)(strlen(killer) + 1) / 2), killer); |
172 mvaddstr(18, 28, (sprintf(prbuf, "%2d", lt->tm_year), prbuf)); | 172 mvaddstr(18, 26, (sprintf(prbuf, "%4d", 1900+lt->tm_year), prbuf)); |
173 move(LINES - 1, 0); | 173 move(LINES - 1, 0); |
174 | 174 |
175 mvaddstr(LINES - 1, 0, retstr); | 175 mvaddstr(LINES - 1, 0, retstr); |
176 | 176 |
177 while ((c = readcharw(stdscr)) != '\n' && c != '\r') | 177 while ((c = readcharw(stdscr)) != '\n' && c != '\r') |