aboutsummaryrefslogtreecommitdiff
path: root/musw.c
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-02-03 23:06:05 +0000
committerrodri <rgl@antares-labs.eu>2023-02-03 23:06:05 +0000
commitd80a73d4daf2dcf8739e6d84e1d82738a3fa5670 (patch)
tree83fb3d07dbdd6992819f63fef6c38176e23574f7 /musw.c
parent16239053b3f411fe7c2b68cefff0be09adc21be1 (diff)
downloadmusw-d80a73d4daf2dcf8739e6d84e1d82738a3fa5670.tar.gz
musw-d80a73d4daf2dcf8739e6d84e1d82738a3fa5670.tar.bz2
musw-d80a73d4daf2dcf8739e6d84e1d82738a3fa5670.zip
vmodeled: plot lines and curves and save them to a file on exit.
Diffstat (limited to 'musw.c')
-rw-r--r--musw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/musw.c b/musw.c
index accdd2c..58e8e0f 100644
--- a/musw.c
+++ b/musw.c
@@ -127,7 +127,7 @@ drawship(Ship *ship, Image *dst)
mulm(T, R);
mdl = ship->mdl;
p = mdl->pts;
- for(s = mdl->strokefmt; s != 0 && p-mdl->pts < mdl->npts; s++)
+ for(s = mdl->strokefmt; s != nil && p-mdl->pts < mdl->npts; s++)
switch(*s){
case 'l':
line(dst, toscreen(xform(p[0], T)), toscreen(xform(p[1], T)), 0, 0, 0, display->white, ZP);