aboutsummaryrefslogtreecommitdiffstats
path: root/demos/3rdparty/doom/wi_stuff.c
diff options
context:
space:
mode:
authorinmarket <andrewh@inmarket.com.au>2013-12-24 19:58:18 +1000
committerinmarket <andrewh@inmarket.com.au>2013-12-24 19:58:18 +1000
commit0345dadebf55980d765826e32854049e498d5759 (patch)
treeaa500fb65cda08d165dc2a66062beedcbdcb30fc /demos/3rdparty/doom/wi_stuff.c
parentc24512f6edaee109ac10c378e7e89218c48255b7 (diff)
downloaduGFX-0345dadebf55980d765826e32854049e498d5759.tar.gz
uGFX-0345dadebf55980d765826e32854049e498d5759.tar.bz2
uGFX-0345dadebf55980d765826e32854049e498d5759.zip
Fixes to DOOM demo to remove some operating system dependancies.
Also now has working input (although not perfect) - Needs mouse or touch. Also now supports screen size doubling when the screen is significantly larger than doom's screen.
Diffstat (limited to 'demos/3rdparty/doom/wi_stuff.c')
-rw-r--r--demos/3rdparty/doom/wi_stuff.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/demos/3rdparty/doom/wi_stuff.c b/demos/3rdparty/doom/wi_stuff.c
index 01502c89..afa48935 100644
--- a/demos/3rdparty/doom/wi_stuff.c
+++ b/demos/3rdparty/doom/wi_stuff.c
@@ -494,7 +494,7 @@ WI_drawOnLnode
else
{
// DEBUG
- printf("Could not place patch on level %d", n+1);
+ I_printf("Could not place patch on level %d", n+1);
}
}
@@ -1545,7 +1545,7 @@ void WI_loadData(void)
if (gamemode == commercial)
strcpy(name, "INTERPIC");
else
- sprintf(name, "WIMAP%d", wbs->epsd);
+ I_sprintf(name, "WIMAP%d", wbs->epsd);
if ( gamemode == retail )
{
@@ -1576,7 +1576,7 @@ void WI_loadData(void)
PU_STATIC, 0);
for (i=0 ; i<NUMCMAPS ; i++)
{
- sprintf(name, "CWILV%2.2d", i);
+ I_sprintf(name, "CWILV%2.2d", i);
lnames[i] = W_CacheLumpName(name, PU_STATIC);
}
}
@@ -1586,7 +1586,7 @@ void WI_loadData(void)
PU_STATIC, 0);
for (i=0 ; i<NUMMAPS ; i++)
{
- sprintf(name, "WILV%d%d", wbs->epsd, i);
+ I_sprintf(name, "WILV%d%d", wbs->epsd, i);
lnames[i] = W_CacheLumpName(name, PU_STATIC);
}
@@ -1610,7 +1610,7 @@ void WI_loadData(void)
if (wbs->epsd != 1 || j != 8)
{
// animations
- sprintf(name, "WIA%d%.2d%.2d", wbs->epsd, j, i);
+ I_sprintf(name, "WIA%d%.2d%.2d", wbs->epsd, j, i);
a->p[i] = W_CacheLumpName(name, PU_STATIC);
}
else
@@ -1629,7 +1629,7 @@ void WI_loadData(void)
for (i=0;i<10;i++)
{
// numbers 0-9
- sprintf(name, "WINUM%d", i);
+ I_sprintf(name, "WINUM%d", i);
num[i] = W_CacheLumpName(name, PU_STATIC);
}
@@ -1695,11 +1695,11 @@ void WI_loadData(void)
for (i=0 ; i<MAXPLAYERS ; i++)
{
// "1,2,3,4"
- sprintf(name, "STPB%d", i);
+ I_sprintf(name, "STPB%d", i);
p[i] = W_CacheLumpName(name, PU_STATIC);
// "1,2,3,4"
- sprintf(name, "WIBP%d", i+1);
+ I_sprintf(name, "WIBP%d", i+1);
bp[i] = W_CacheLumpName(name, PU_STATIC);
}