#101 code change for src/boss/golem_boss.c

v1.0_(example)
open
nobody
None
1
2013-10-12
2013-10-10
Anonymous
No

Please change code for src/boss/golem_boss.c

self->dirY =- 13

to

self->dirY -= 13

Discussion

  • nemysisbsd
    nemysisbsd
    2013-10-12

    When i compile The Legend of Edgar i get

    src/boss/golem_boss.c:559:13: warning: use of unary operator that may be intended as compound assignment (-=)
    self->dirY =- 13;
    ^~
    src/boss/golem_boss.c:624:16: warning: use of unary operator that may be intended as compound assignment (-=)
    self->dirY =- 13;
    ^~

    When use this in my Makefile not have these messages

        @${REINPLACE_CMD} -e 's|self->dirY =- 13|self->dirY -= 13|g' \
                ${WRKSRC}/src/boss/golem_boss.c
    

    Soon is The Legend of Edgar one FreeBSD Port and here is all installed in /usr/local

        @${REINPLACE_CMD} -e 's|SDL/SDL|${LOCALBASE}/include/SDL/SDL|g' \
                ${WRKSRC}/src/headers.h
        @${REINPLACE_CMD} -e 's|png.h|${LOCALBASE}/include/png.h|g' \
                ${WRKSRC}/src/graphics/save_png.c
    
     


Anonymous


Cancel   Add attachments