From 6fbf92a3b382aa0d89752b6a47565789583eec5b Mon Sep 17 00:00:00 2001 From: "giacomand@gmail.com" Date: Sat, 8 Dec 2012 03:02:35 +0000 Subject: [PATCH] -Fixed a bug with newscaster photos only showing the last photo. Sorry I haven't done much image stuff before. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5283 316c924e-a436-60f5-8080-3fe189b3f50e --- code/game/machinery/newscaster.dm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/game/machinery/newscaster.dm b/code/game/machinery/newscaster.dm index febb11112a4..4d60b0eec87 100644 --- a/code/game/machinery/newscaster.dm +++ b/code/game/machinery/newscaster.dm @@ -296,11 +296,13 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co if( isemptylist(src.viewing_channel.messages) ) dat+="No feed messages found in channel...
" else + var/i = 0 for(var/datum/feed_message/MESSAGE in src.viewing_channel.messages) + i++ dat+="-[MESSAGE.body]
" if(MESSAGE.img) - usr << browse_rsc(MESSAGE.img, "tmp_photo.png") - dat+="

" + usr << browse_rsc(MESSAGE.img, "tmp_photo[i].png") + dat+="

" dat+="\[Story by [MESSAGE.author]\]
" dat+="

Refresh" dat+="
Back" @@ -396,8 +398,8 @@ var/list/obj/machinery/newscaster/allCasters = list() //Global list that will co dat+="Description: [news_network.wanted_issue.body]
" dat+="Photo:: " if(news_network.wanted_issue.img) - usr << browse_rsc(news_network.wanted_issue.img, "tmp_photo.png") - dat+="
" + usr << browse_rsc(news_network.wanted_issue.img, "tmp_photow.png") + dat+="
" else dat+="None" dat+="

Back
"